snowflake
snowflake copied to clipboard
Why DEPRECATED for func Time?
Why DEPRECATED for func Time?
// Time returns an int64 unix timestamp in milliseconds of the snowflake ID time
// DEPRECATED: the below function will be removed in a future release.
func (f ID) Time() int64 {
return (int64(f) >> timeShift) + Epoch
}
I have the same question
Hmn, that's a good question. I assume there was some reason for adding that note but I can't remember. Let me review it and if I can't remember what it was then we'll just remove that comment :)
any update about it ?
any update about it ?