Below is a list of Time and Date macros. Notice that most return values are two-digits long.
The full list of macros can be found here.
Macro | Description |
@SEC |
Seconds value of clock. Range is 00 to 59 |
@MIN |
Minutes value of clock. Range is 00 to 59 |
@HOUR |
Hours value of clock in 24-hour format. Range is 00 to 23 |
@MDAY |
Current day of month. Range is 01 to 31 |
@MON |
Current month. Range is 01 to 12 |
@YEAR |
Current four-digit year |
@WDAY |
Numeric day of week. Range is 1 to 7 which corresponds to Sunday through Saturday. |
@YDAY |
Current day of year. Range is 1 to 366 (or 365 if not a leap year) |