forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1731620 - Part 1: Add more time zone functions to mozilla::intl::…
…TimeZone. r=platform-i18n-reviewers,gregtatum Add four additional methods to `mozilla::intl::TimeZone`: 1. `GetDSTOffsetMs()` to return the daylight saving offset at a specific UTC time. 2. `GetOffsetMs()` to return the time zone offset at a specific UTC time. 3. `GetUTCOffsetMs()` to return the UTC offset at a specific local time. 4. `GetDisplayName()` to return the display name of a time zone. All four methods will be used to replace ICU calls in "js/src/vm/DateTime.cpp". Differential Revision: https://phabricator.services.mozilla.com/D126191
- Loading branch information
Showing
3 changed files
with
236 additions
and
4 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
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