Parses the given RFC 3339-compatible string into a timestamp.
Arguments
Arguments | |
---|---|
value |
A string formatted according to the subset of ISO 8601 defined by RFC 3339 section 5.6, with up to a microsecond precision. |
Returns
The timestamp corresponding to the string, as a floating point number in seconds since epoch.
Raised exceptions
Exceptions | |
---|---|
TypeError |
If time is not a string. |
ValueError |
If time is not compatible with RFC 3339 section 5.6. |
Examples
# Parse given RFC 3339-compatible string into a timestamp # For example, returns `1715169660` - returnStep: return: ${time.parse("2024-05-08T12:01:00.000000Z")}