time.format()
Formats ISO 8601 date and time.
Signature
time.format(timestamp[, offset_minutes])
Parameters
Finite numeric Unix seconds, optional signed offset from -1439 to 1439 minutes, default zero.
Returns
String with Z or signed hh:mm offset, plus fractional seconds when needed.
Behavior
Rounds to microseconds and uses the platform calendar conversion.
Errors
Out of supported year or platform time range.
Example
use time
assert(time.format(0) == '1970-01-01T00:00:00Z')