UCE Docs / time_format_utc

Signature

String time_format_utc(String format = "", u64 timestamp = 0)

Parameters

format : formatting string specifying the date format
timestamp : optional timestamp value, defaults to current time
return value : a formatted date

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");
Output
2026-06-21