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

Switch to UnixMilli funcs (Go 1.17) #12

Open
vtopc opened this issue Jan 4, 2022 · 0 comments
Open

Switch to UnixMilli funcs (Go 1.17) #12

vtopc opened this issue Jan 4, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@vtopc
Copy link
Owner

vtopc commented Jan 4, 2022

https://pkg.go.dev/time#Time.UnixMilli
and
https://pkg.go.dev/time#UnixMilli


Get rid of https://pkg.go.dev/time#Time.UnixNano

The result is undefined if the Unix time in nanoseconds cannot be represented by an int64 (a date before the year 1678 or after 2262). Note that this means the result of calling UnixNano on the zero Time is undefined.

@vtopc vtopc added the enhancement New feature or request label Jan 4, 2022
@vtopc vtopc changed the title Switch to UnixMilli funcs Switch to UnixMilli funcs (Go 1.17) May 18, 2022
@vtopc vtopc added the good first issue Good for newcomers label Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant