IngameDateTime_Dev > Ingame Calendar > Truncate To Period

Truncate To Period

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.

Inputs

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

Outputs

Return Value
Ingame Date Time Value Structure

Time truncated to the specified period