Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why DEPRECATED for func Time? #56

Open
camry opened this issue Aug 8, 2023 · 2 comments
Open

Why DEPRECATED for func Time? #56

camry opened this issue Aug 8, 2023 · 2 comments

Comments

@camry
Copy link

camry commented Aug 8, 2023

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
Copy link

I have the same question

@bwmarrin
Copy link
Owner

bwmarrin commented Jan 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants