ulid / javascript

Universally Unique Lexicographically Sortable Identifier
MIT License
3.04k stars 107 forks source link

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

Closed dashmug closed 5 years ago

dashmug commented 5 years ago

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 commented 5 years ago

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

alizain commented 5 years ago

@dashmug decodeTime will work

alizain commented 5 years ago

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