Skip to content

Draft: Implement DST#39

Closed
frmdstryr wants to merge 1 commit intomasterfrom
dst
Closed

Draft: Implement DST#39
frmdstryr wants to merge 1 commit intomasterfrom
dst

Conversation

@frmdstryr
Copy link
Owner

For #38. This adds a function to calculate the timezone's offset that takes into account daylight savings for timezones which use it. Currently only several US timezones are implemented.

Any code which previously used the timezone's offset field should be changed to use the new Timezone.dstOffset function if DST support is needed.

Since the daylight savings schedules vary for different timezones it also adds a Date.fromNthWeekday function to make it easier.

This is only tested using a few simple testcases so there's likely some bugs lingering. Any feedback is welcome.

@frmdstryr
Copy link
Owner Author

Replaced by #40

@frmdstryr frmdstryr closed this Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant