Formats the given timestamp as a human-readable string.
Arguments
Arguments | |
---|---|
seconds |
A timestamp in seconds since epoch. |
timezone |
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
# Format given timestamp as human-readable string # For example, returns "2024-05-08T11:55:36.097870Z" - returnStep: return: ${time.format(sys.now())}