jcrist · GitHub

added 4 commits

July 8, 2023 01:49
These are encoded to ISO8601 duration strings. Only `'D'`, `'H'`, `'M'`,
and `'S'` units are supported (no relative units like `Y` or `M`
(month)).
If `strict=False` we also support decoding int/float values (or str
representations of these values) to `timedelta` types. Note that a
`double` cannot represent a timedelta with microsecond precision if
the value is > ~270 years. For true roundtrip support we recommend
serializing timedeltas as ISO 8601 strings.

@jcrist jcrist changed the title [WIP] datetime.timedelta Support datetime.timedelta Support

Jul 11, 2023

@jcrist

@jcrist

jcrist deleted the parse-iso8601-duration branch

July 11, 2023 02:24

Closed

Read the original on github.com ↗