Skip to content

Timezones a-la chrono-tz #351

Closed Answered by jhpratt
jorgecarleitao asked this question in Question
Sep 20, 2021 · 1 comments · 6 replies
Discussion options

You must be logged in to vote

Looks like you're asking for two separate things here: tzdb integration and a Period type. Both are planned.

tzdb support (tracked by #193) is what will provide time zones rather than just fixed offsets. This will let you subtract two dates over a DST shift and get the appropriate Duration (such as 23 or 25 hours rather than 24).

A Period type is what will allow you to take January 1 and add one month, rather than requiring a number of days (which of course varies by month). It would be able to be added to and subtracted from all of the types you'd expect. That will include ZonedDateTime or whatever it ends up being called.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jhpratt
Comment options

@jorgecarleitao
Comment options

@jhpratt
Comment options

@jorgecarleitao
Comment options

@jhpratt
Comment options

Answer selected by jorgecarleitao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants