Time Format plug-in format functions
The format functions convert the time parameter to the local time and return that time in the format you specify.
Usage
string format(float time, string format)
string formatUTC(float time, string format)
string formatWithTimeZone(float time, string format, string tzName)
Usage description
time | Float that indicates the time you want to format. This value is the number of seconds since the epoch in UTC. This is the same format used by the currentTime variable. For information about the currentTime variable, see Getting the current time. |
format | |
name | String that specifies the name of a time zone. |
The format() function converts the time parameter to the local time and returns that time in the format you specify.
The formatUTC() function returns the time specified in the time parameter in the format you specify. The formatUTC() function always returns UTC (GMT no matter what the local time is). This is true of all *UTC functions.
The formatWithTimeZone() function converts the time parameter, which is UTC, to the time in the time zone you specify and returns that time in the format you specify.