Snowflake v0.0.2 Snowflake.Util
The Util module helps users work with snowflake IDs.
Util module can do the following:
- Deriving timestamp based on ID
- Creating buckets based on days since epoch…
- get real timestamp of any ID
Summary
Functions
When no id is provided, we generate a bucket for the current time
Get bucket value based on segments of N days
Get timestamp from computer epoch - January 1, 1970, Midnight
Get timestamp in ms from your config epoch from any snowflake ID
Functions
When no id is provided, we generate a bucket for the current time
Get bucket value based on segments of N days
Get timestamp from computer epoch - January 1, 1970, Midnight