Is that timestamp in seconds or milliseconds? I built a zero-dep CLI that just tells you — both directions. (opens in new tab)
You find a timestamp in a log line: 1718750000123. Is that seconds? Milliseconds? You reach for date... and on macOS it's date -r, on Linux it's date -d @, and neither of them will tell you that you grabbed milliseconds and your "date" is now in the year 56435. So you give up and paste the number into the third epoch-converter website that Google hands you. I do this several times a week. So I built epochlens — one zero-dependency command that auto-detects the unit, works the same on every pl...
Read the original article