3 ms·
> Copying a millisecond-from-epoch number, visiting a website that can convert it to human-readable date, pasting the number, and hitting enter I use the built
by jan_g 6y ago
> Copying a millisecond-from-epoch number, visiting a website that can convert it to human-readable date, pasting the number, and hitting enter
I use the builtin `date` utility for this specific task, instead of querying another webpage to translate it.
$ date -r 1577733633
Mon Dec 30 20:20:33 CET 2019
- wjdp 6y agodate -r 1577733633 date: 1577733633: No such file or directory ... -r, --reference=FILE display the last modification time of FILE ... Is OSX's date command different from Linux?
- tanin 6y agoYes! I was doing that for a while with a command-line tool. I couldn't make up my mind which way was faster. They were both required some sort of motor skill (e.g. switch to terminal, paste, enter) to perform the flows quickly.
- iandev 6y agoAlso worth noting that you can pipe the result to `pbcopy` to put it in your clipboard. Super useful if you haven't seen it before. $ date -r 1577733633 | pbcopy
- sportsaw 6y agoI think the example was silly, but think about finding the epoch in, say, a log file. With this system you could just click and see the human readable. With the date command you'd have to switch to terminal, type "date -r", paste, enter.