GetTimeProperty
int GetTimeProperty (int timestamp, int which[, int utc]) (Dev. 3.0 | 150831-1814)
![]() |
Warning: This feature is Skulltag specific, and is not compatible with ZDoom! To see all of Skulltag's specific features, see Skulltag features. |
Usage
Parameters
- timestamp: The timestamp to localize.
- which: Which attribute to return.
- utc: If true, the timestamp will be localized using the UTC timezone, local timezone otherwise
Time properties
Property | Range | Description |
---|---|---|
TM_SECOND (0) | [0 - 61] | Seconds. Result is generally within [0, 59] but may very rarely exceed due to leap seconds. |
TM_MINUTE (1) | [0 - 59] | Minutes |
TM_HOUR (2) | [0, 23] | Hours |
TM_DAY (3) | [0, 30] | Days |
TM_MONTH (4) | [0, 11] | Month of the year |
TM_YEAR (5) | [1901, 2038] | Year |
TM_WEEKDAY (6) | [0, 6] | Weekday (Sunday is 0) |
Result value
Localizes the given timestamp and returns an attribute of it.
Note that due to ACS's limitations, the timestamp is suspectible to the year 2038 problem.
See Also
This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.