-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide custom comparison functions in TimestampWithTimezone (#11025)
Summary: Pull Request resolved: #11025 #11021 introduced the ability for custom types to provide their own compare and hash semantics. This change updates TimestampWithTimezone to take advantage of this new feature. It is represented as a 64-bit integer, but only the top 42 bits of the value, which represent the millis since epoch in UTC, should be used for the purposes of comparison and hashing. The bottom 12 bits which represent the timezone should be ignored. Reviewed By: pansatadru Differential Revision: D62906383 fbshipit-source-id: 93c5c4e9a1f8bf716d3b804f3bd7019d3b2b0ad3
- Loading branch information
1 parent
50784a5
commit 9e1280a
Showing
2 changed files
with
106 additions
and
26 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