by mechanicalpulse · 2y ago · 0 comments
$ 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.It's a good reminder though. We are all smart individuals with wealth of knowledge, but we never know everything.