Skip to main content

parse_iso8601

Parse and convert ISO-8601 string to datetime.

def parse_iso8601(
datestring: string
) - > datetime

Parse and convert ISO-8601 string to datetime.

Parameters

NameTypeDescription
datestringstringThe ISO-8601 formatted string to be converted into a datetime object.

Returns

TypeDescription
datetimeA datetime object representing the parsed timestamp, including timezone offset if provided in the input string.