Hacker News new | ask | show | jobs
by wpollock 25 days ago
Pax has an interesting use in POSIX: combined with od, pax is the only way (in POSIX) to get a Unix timestamp from the command line. The exact command line is left as an exercise for the interested reader.
1 comments

As of POSIX.1-2024 you can use %s to get the number of seconds since the epoch. But that was indeed not specified in earlier POSIX versions, AFAIK.