Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> You're not going to try and extract a timestamp from a uuid.

So, random library: https://pkg.go.dev/github.com/google/uuid#UUID.Time

> Time returns the time in 100s of nanoseconds since 15 Oct 1582 encoded in uuid. The time is only defined for version 1, 2, 6 and 7 UUIDs.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: