Truncates a date/time value to the specified period (all smaller periods are set to zero).
Example:
With a standard calendar, a date/time of 18:30:59, Jan 1st 2016 truncated to period Hour would yield 18:00:00, Jan 1st 2016.
Target
Ingame Calendar Object Reference
|
|
Time
Ingame Date Time Value Structure (by ref)
|
Input date/time value |
Period Id
Name
|
ID of period to truncate to |
Return Value
Ingame Date Time Value Structure
|
Time truncated to the specified period |