fork(2) download
  1. from datetime import datetime
  2.  
  3. date_format = "%d/%m/%Y"
  4. d0 = datetime.strptime('21/4/2014', date_format)
  5. d1 = datetime.strptime('15/5/2014', date_format)
  6. delta = abs(d0 - d1)
  7. print delta.days
Success #stdin #stdout 0.05s 9464KB
stdin
Standard input is empty
stdout
24