NXSL:strftime
Revision as of 11:20, 19 January 2016 by Tomas Kirnak (talk | contribs) (Added function description)
Formats a Unix timestamp, and returns a string according to given formatting rules.
Syntax
strftime(string);
Parameters
string Formatting string - see this for available options http://www.cplusplus.com/reference/ctime/strftime/
Return Value
Formatted time as a string.
Examples
strftime("%Y-%m-%d %H:%M", time()) -> 2016-01-19 12:14 strftime("%Y-%m-%d %H:%M - timezone %Z - offset from UTC - %z", time()) -> 2016-01-19 12:14 - timezone CET - offset from UTC - +0100