Calculating Time
February 22, 2018
Simple script to calculate days between two dates.
from datetime import *
today = date.today()
past_date = date(1994,2,10)
diff = today - past_date
print "That was %d days ago." % diff.days
I don't understand the need for the asterisk on the first line.
Recent Entries
- Filter First, Think Later February 21, 2026
- Five Hundred Bugs That Fuzzers Missed February 20, 2026
- Gemini 3.1 Pro and the 0.1 That Matters February 19, 2026