-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support decoding seconds as float/int to timedelta
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.
- Loading branch information
Showing
4 changed files
with
242 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.