3 ms·
The date command is not wrong, it works on GNU date, if you are in MacOS try running gdate instead (if it is installed): gdate -u -d @1775060800 To install
by augusto-moura 7mo ago
The date command is not wrong, it works on GNU date, if you are in MacOS try running gdate instead (if it is installed):
gdate -u -d @1775060800
To install gdate and GNU coreutils:
brew install coreutils
The date command still prints the incorrect value:
Wed Apr 1 16:26:40 UTC 2026
- neonstatic 7mo agoGood catch, I just ran it verbatim in iTerm2 on macOs: date -u -d @1775060800 date: illegal option -- d btw. how do you format commands in a HN comment correctly?
- augusto-moura 7mo agoStart the line indented with two or more spaces [1] [1]: https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc