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?
by

1 Answer

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

Login / Signup to Answer the Question.