-
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.
Merge main into experiment-temporal-api
- Loading branch information
Showing
7 changed files
with
86 additions
and
23 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
export const MINUTES_PER_DAY = 60 * 24 | ||
export const MILLISECONDS_PER_DAY = 1000 * 60 * 60 * 24 | ||
export const MILLISECONDS_PER_WEEK = MILLISECONDS_PER_DAY * 7 | ||
export const REAL_LIFE_LOWER_TIMEZONE = -12 * 60 | ||
export const REAL_LIFE_UPPER_TIMEZONE = 14 * 60 | ||
|
||
// Local timezone offset from UTC, in minutes | ||
/** | ||
* The farthest timezone offset **behind** UTC time. | ||
*/ | ||
export const REAL_LIFE_LOWER_TIMEZONE = -12 * 60 // -12:00 | ||
|
||
/** | ||
* The farthest timezone offset **ahead of** UTC time. | ||
*/ | ||
export const REAL_LIFE_UPPER_TIMEZONE = 14 * 60 // +14:00 | ||
|
||
/** | ||
* Local timezone offset from UTC, in minutes. | ||
*/ | ||
export const LOCAL_TZ_OFFSET = (new Date()).getTimezoneOffset() * -1 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,15 @@ | ||
export const MINUTES_PER_DAY: number; | ||
export const MILLISECONDS_PER_DAY: number; | ||
export const MILLISECONDS_PER_WEEK: number; | ||
/** | ||
* The farthest timezone offset **behind** UTC time. | ||
*/ | ||
export const REAL_LIFE_LOWER_TIMEZONE: number; | ||
/** | ||
* The farthest timezone offset **ahead of** UTC time. | ||
*/ | ||
export const REAL_LIFE_UPPER_TIMEZONE: number; | ||
/** | ||
* Local timezone offset from UTC, in minutes. | ||
*/ | ||
export const LOCAL_TZ_OFFSET: number; |
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