Skip to content

Instantly share code, notes, and snippets.

@jkeefe
Last active April 20, 2023 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkeefe/224764383f20adf0749c79e405d96900 to your computer and use it in GitHub Desktop.
Save jkeefe/224764383f20adf0749c79e405d96900 to your computer and use it in GitHub Desktop.
Cool hex time hash for cache busting, unique, etc.
const time_hash = Date.now().toString(36);
// reverse it for more wordiness:
const time_hash2 = Date.now().toString(36).split("").reverse().join("")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment