Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
(defn squuid-created-at
"Pull the date back out of a squuid. This will be nonsense if the UUID
passed in was not a squuid!"
[^java.util.UUID uuid]
(let [secs (bit-shift-right (.getMostSignificantBits uuid) 32)]
(java.util.Date. (* secs 1000))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment