uce/site/doc/pages/time_format_utc.txt
2026-06-16 12:21:31 +00:00

27 lines
578 B
Plaintext

:sig
String time_format_utc(String format = "", u64 timestamp = 0)
:params
format : formatting string specifying the date format
timestamp : optional timestamp value, defaults to current time
return value : a formatted date
:see
>time
>time_format_relative
:content
Formats a timestamp in the GMT/UTC timezone.
This formatter is based on the Linux `date` command and supports the same core formatting tokens plus UCE's relative-time delta tokens.
Supported format sequences:
Padding and case flags may follow `%`:
:example
print(time_format_utc("%Y-%m-%d", 0), "\n");