Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: