bwmarrin / snowflake

A simple to use Go (golang) package to generate or parse Twitter snowflake IDs
BSD 2-Clause "Simplified" License
2.93k stars 373 forks source link

Why DEPRECATED for func Time? #56

Open camry opened 11 months ago

camry commented 11 months ago

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
}
tasszz2k commented 7 months ago

I have the same question

bwmarrin commented 6 months ago

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 :)

fcarrero commented 1 month ago

any update about it ?

jackie-feng commented 3 weeks ago

any update about it ?