Wherever the current time may be used, the origin time may be used instead. The functions are analogous to the current time.
In some cases, the origin time functions may be used instead of integers.
The origin is the purchase origin. I.e. the time the purchase started.
Constant name |
Internal value |
$originyear |
The origin year |
$originmonth |
The origin month [1..12] |
$originweek |
The origin week of the year [1..53] |
$origindayofyear |
The origin day of the year [1..366] |
$originhour |
The origin hour of the day [0..23] |
$originminute |
The origin minute of the hour [0..59] |
$origintimeofday, $origintime |
The origin minute of the day [0..1339]. |
$origintimeofweek |
The origin minute of the week [0..10079] |
$origindayofmonth |
The origin day of the month [1..31] |
$originweekday, $originday |
The origin weekday [0..6], starts with Monday = 0 |
$origindaytype |
The origin day type. Can only be used with equals and not equals. |