snowflake icon indicating copy to clipboard operation
snowflake copied to clipboard

Why DEPRECATED for func Time?

Open camry opened this issue 1 year ago • 4 comments

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
}

camry avatar Aug 08 '23 06:08 camry

I have the same question

tasszz2k avatar Dec 12 '23 10:12 tasszz2k

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

bwmarrin avatar Jan 08 '24 15:01 bwmarrin

any update about it ?

fcarrero avatar Jun 03 '24 17:06 fcarrero

any update about it ?

jackie-feng avatar Jun 27 '24 11:06 jackie-feng