Skip to content

Instantly share code, notes, and snippets.

@Dev1an
Last active November 21, 2015 13:15
Show Gist options
  • Save Dev1an/7bd9f49db53e53793b29 to your computer and use it in GitHub Desktop.
Save Dev1an/7bd9f49db53e53793b29 to your computer and use it in GitHub Desktop.
This gist shows you how to encode the current time into raidx 36 strings using Javascript

##Encoding current time

  (new Date).getTime().toString(36)

##Decoding milliseconds in radix into a date

  new Date(parseInt("radixDate", 36))
const now = new Date
console.log(now.getTime().toString(36))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment