Many functions in QuantLib take a period of time, expressed as a relative measure from some reference date. The periods are expressed by a natural number followed by an abbreviation:
Abbreviated as ‘D’
Abbreviated as ‘W’
Abbreviated as ‘M’
Abbreviated as ‘Y’
Multiple periods can be specified together in which case they are
added together, for example 2Y6M
is interpreted as two years and
six months.