Comment by mechanicalpulse
2 years ago
Great read, though I am compelled to comment on this ad-hoc date/time conversion:
$ date=$(python3 -c 'import datetime; print(datetime.datetime.fromtimestamp(1707074879).isoformat())')
Consider reaching for `date` from GNU coreutils instead:
$ date -Is -d @1707074879
Fewer keystrokes, faster execution, and the output includes the TZ offset.
Great article indeed, but that python line triggered me too.
It's a good reminder though. We are all smart individuals with wealth of knowledge, but we never know everything.