Duration Token Suffixes

Navigation:  Tokens > Token Suffixes >

Duration Token Suffixes

Previous pageReturn to chapter overviewNext page

Duration tokens are holidays tokens or moon tokens or holidays response tokens to which a code representing a range of dates is appended. The structure of these tokens is :

 

[aConcatToken:Period1:Period2]

 

Where :

 

aConcatToken represents any token that can be concatenated, such as [Fa], [Fä], [:st_a], [mp], [mt].

 

Periods can either be absolute or relative.

 

Period1 and Period2 do not have to be of the same type (day-week-month-year). Mixing types allows for the creation of "until the end of" ranges (see examples below).

 

The Period2 is optional.

 

If there is only one period, the beginning and end dates of the range will be determined by the beginning and end of Period1. If there are 2 periods then the beginning date of the range will come from the beginning of Period1 and the end of the range from the end of Period2.

 

Relative periods can be one of the following :

 

d-99 to d+99.

w-99 to w+99.

m-99 to m+99.

y-99 to y+99.

 

Absolute periods can be one of the following :

 

No absolute day periods.

w001 to w053.

m001 to m012.

No absolute year periods.

 

Examples :

 

[Fa:m001:m006] : will be replaced by all holidays that fall in the first 6 months of the year corresponding to DayValue 2.
[Fa:m012] : will be replaced by all holidays that fall in December.
[2mp:m+00:m+00] : will be replaced by all moon phases that fall in the same month as DayValue 2. This is the same as [2mp:m+00].
[2Fa:d+00:m+00] : will be replaced by all holidays from the current date to the end of the current month. If we wished to do it to the end of the year we would use [2Fa:d+00:y+00].
[2mp:m+00:d+00] : will be replaced by all moon phases since the beginning of the current month. If we wished to do it from the beginning of the year we would use [2mp:y+00:d+00].

 

Note that duration tokens can be used within zap tokens.

 

[8zFa:m+00=]

 

The above example is used to zap a byline if there is no holiday for the current month. For more details, see Combining Range and Zap Tokens.

 

Finally, if you need more control over your holidays or moon phases duration tokens, then you can use instead a GenTokens token


Topic 108499 updated on 13-May-2016.
Topic URL: http://www.qppstudio.net/webhelp/index.html?durationtokens.htm