fork(17) download
  1. from datetime import date
  2.  
  3. d0 = date(2014, 5, 31)
  4. d1 = date(2014, 4, 20)
  5. delta = abs(d0 - d1)
  6. print delta.days
Success #stdin #stdout 0.01s 7988KB
stdin
Standard input is empty
stdout
41