Skip to content

Instantly share code, notes, and snippets.

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 NamekMaster/f15f37f7f9334cdb4011da47a459eed7 to your computer and use it in GitHub Desktop.
Save NamekMaster/f15f37f7f9334cdb4011da47a459eed7 to your computer and use it in GitHub Desktop.
popclip snippet convert milliseconds to human-readable date
#popclip multi-line script with YAML syntax
name: Convert milliseconds to human-readable date
icon: square filled D
regex: ^\d+$
javascript: |
const timestamp = parseInt(popclip.input.text);
popclip.showText(new Date(timestamp).toISOString());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment