Signature
String time_format_local(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 server's local 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_local("%Y-%m-%d", 0) != "" ? "formatted\n" : "empty\n");
Output
formatted