-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This adds a new API for converting a `TimeZone` to a fixed offset, but *only* when it's safe to do so (i.e., the time zone is itself just a fixed offset). I'm not a huge fan of adding this API because I feel like it confuses things a bit and could potentially lead to decision paralysis. But I think the use case makes sense (needing to interoperate with Python's datetime system through pyo3, which requires needing to know more about the "type" of a time zone). We also call this out (albeit in more vague terms) in the docs to hopefully warn folks off of it. Closes #169
- Loading branch information
1 parent
555c715
commit 6cd7698
Showing
2 changed files
with
94 additions
and
0 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