4 ms·
Great read, though I am compelled to comment on this ad-hoc date/time conversion: $ date=$(python3 -c 'import datetime; print(datetime.datetime.fromtimesta
by mechanicalpulse 2y 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.
- karttu 2y agoGreat 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.