ulid / javascript

Universally Unique Lexicographically Sortable Identifier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dashmug opened this issue · comments

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.

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

@dashmug decodeTime will work

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