format_utc

On this page
  1. Time:format_utc(format)

Time:format_utc(format)#

Formats the time object as a string, using UTC date/time representation of the time.

The format string supports the set of formatting placeholders described here.

> wakterm.time.now():format_utc("%Y-%m-%d %H:%M:%S")
"2022-07-17 18:14:15"
> wakterm.time.now():format("%Y-%m-%d %H:%M:%S")
"2022-07-17 11:14:15"

See also Time:format().

Edit this page