Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Quickly calculate date differences

I often want to make some quick date calculations, such as:

What is the difference between these two dates?
What is the date n weeks after this other date?
I usually open a calendar and count the days, but I think there should be a program/script that I can use to do these kinds of calculations. Any suggestions?

1 Answer

A python example for calculating the number of days I've walked the planet:
$ python
>>> from datetime import date as D
>>> print ( - D(1980, 6, 14)).days

Login / Signup to Answer the Question.