Strftime
str Strftime(int timestamp, str format[, 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 format (use SystemTime to get the current time])
- format: a string describing how the string is formatted. It may contain any supported conversion specifiers, which are replaced as appropriate.
- utc: If true, then the timestamp will be localized using the UTC timezone, local timezone otherwise.
Return value
A human-readable string from the given timestamp, formatted using the format parameter.
Note that due to ACS's limitations, timestamps are suspectible to the year 2038 problem.
Example
This prints something like January 16 2023
to the screen.
1 Script 1 (void)
2 {
3 Print (s: Strftime (SystemTime(), "%B %d %Y", true));
4 }
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.