Skip to content

strptime

strptime(timeString: string, format: string): StructTime

Defined in: packages/pythonlib/src/time.ts:349

Parse a string according to a format and return a StructTime.

Parameters

ParameterTypeDescription
timeStringstringString to parse
formatstringFormat string (same codes as strftime)

Returns

StructTime

StructTime object

Throws

Error if string doesn’t match format