Created
March 12, 2012 20:30
-
-
Save lucasrizoli/2024505 to your computer and use it in GitHub Desktop.
Bookmarklet for converting UNIX/POSIX timestamp to date and time
This file contains hidden or 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
javascript:(function(a){var b=parseInt(a.replace(/[\s|,]/g,""),10);alert(isNaN(b)?'"'+a+"\" doesn't look like a UNIX timestamp.":'"'+a+'" is\n'+new Date(b*(b>1e12?1:1e3)));})(window.getSelection().toString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment