Counting Things
February 13, 2018
This (fairly) simple few lines calculates the days between two dates - in this case, the 4th of July 2020. That's 888 days as of February 13th 2018.
from datetime import *
today = date.today()
future = date(2020,07,20)
diff = future - today
print "There are %s days left." % diff.days
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