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

Is there a way to get the timestamp from a given ULID? #65

Closed
dashmug opened this issue Jul 5, 2019 · 3 comments
Closed

Is there a way to get the timestamp from a given ULID? #65

dashmug opened this issue Jul 5, 2019 · 3 comments

Comments

@dashmug
Copy link

dashmug commented Jul 5, 2019

Use case:

If I store the ULID in the DB and I can retrieve timestamp information from the ULID, I won't need to store a separate timestamp column anymore.

@ryanatkn
Copy link

ryanatkn commented Jul 5, 2019

See decodeTime. Looks like it's not documented in the README.

@alizain
Copy link
Collaborator

alizain commented Oct 10, 2019

@dashmug decodeTime will work

@alizain
Copy link
Collaborator

alizain commented Oct 10, 2019

Closing the issue, feel free to re-open if you need to

@alizain alizain closed this as completed Oct 10, 2019
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