diff options
Diffstat (limited to 'lib/models/snowflake.ml')
| -rw-r--r-- | lib/models/snowflake.ml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/models/snowflake.ml b/lib/models/snowflake.ml index 305043e..6b52ec6 100644 --- a/lib/models/snowflake.ml +++ b/lib/models/snowflake.ml @@ -1,6 +1,8 @@ module Make(Http : S.Http) = struct open Core + type t = Snowflake_t.t + let timestamp snowflake = let offset = (snowflake lsr 22) / 1000 in 1_420_070_400 + offset |