Hacker News new | ask | show | jobs
by augusto-moura 78 days 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
1 comments

Good 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?

Start the line indented with two or more spaces [1]

[1]: https://news.ycombinator.com/formatdoc