Function: time.parse

Parses the given RFC 3339-compatible string into a timestamp.

Arguments

Arguments
value

string

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.