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

Just over two years ago. (730+ days)

If I needed an exact date, I would do something like the following (python)

>>> import datetime >>> datetime.date.today()-datetime.timedelta(864) datetime.date(2010, 4, 13)



Easier in shell:

  $ date -d '864 days ago'
  Tue Apr 13 13:46:16 EDT 2010


Well, see, I would just print the date that's there in the database in the first place. How is "864 days ago" useful information? Doesn't everyone at least convert it to the number of years it stands for?




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

Search: