Date Offset Suffixesare used to specify that a token is to be evaluated for a certain number ofdaysormonths*before or after the date indicated by itsDayValue.
These suffixes are particularly useful in thetext and tokens to display on each generated linefield ofGenTokens Options, where the DayValue is dynamic.
The 3 types of date offset suffixes are:
:-Xd :+Xd |
Evaluate the token X days before/before its date. |
:-Xm :+Xm |
Evaluate the token X months before/before its date. |
:-Xy :+Xy |
Evaluate the token X years before/before its date. |
The structure of these suffixes is as follows:
•the suffix is added at the end of any token
•it begins with a colon:
•followed by a plus or minus
•followed by the number of days or months to offset
•followed bydormorydepending if the offset is counted in days or months or years*.
Some examples:
[1d:-1m] |
Evaluate the token[1d]one month before the date determined by DayValue 1. |
[1SR:-7d] |
Show the Sunrise of one week before (note how we use 7 days rather than 1 week)* |
[#fa:+1d] |
The a-Holidays of tomorrow (used insideGenTokens Options) |
[1yyyy:+3y] |
3 years after the year of day 1 |
*IMPORTANT: Date Offset Suffixes can only be specified as a number of days or months or years (such as:+5dor:-1mor:+2y). Using the same notation, but as a number of weeks (such as :-2w or :+3w) is interpreted as aminicalendar current week offset modifier. To have a number of weeks as offset, use 7 times that number in days (for example use:+21dinstead of:+3w).
See also:minicalendar starting date offset modifier,minicalendar current week offset modifier,minicalendar year offset modifier,minicalendar offset from script year modifier.