Function: time.format

Formats the given timestamp as a human-readable string.

Arguments

Arguments
seconds

integer|float

A timestamp in seconds since epoch.

timezone

string

A timezone name from the tz database: http://en.wikipedia.org/wiki/Tz_database. If not specified or if an empty string, the default is UTC.

Returns

A timestamp string in ISO 8601 format, up to a microsecond precision. For example: "2024-01-10T16:15:54.615087Z".

Examples

You can use this function in an expression like this:

${time.format(sys.now())}