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

For people not wanting to use Google, I've written a script "dateparse"[1] that allows to do the same:

    $ TZ=America/Chicago dateparse '2pm PT'
    2pm PT: assuming PDT
    1647464400  Wed Mar 16 16:00:00 CDT 2022
(You don't need to set TZ if your local time is already CT, of course.)

[1] https://github.com/pflanze/chj-bin/blob/master/dateparse



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

Search: