Created
January 17, 2024 08:40
-
-
Save NamekMaster/f15f37f7f9334cdb4011da47a459eed7 to your computer and use it in GitHub Desktop.
popclip snippet convert milliseconds to human-readable date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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