fork(1) download
  1. from datetime import datetime
  2.  
  3. d0 = datetime(2014, 5, 10, 12, 14, 15)
  4. d1 = datetime(2014, 4, 15, 23, 12, 45)
  5. diff = abs(d0 - d1)
  6.  
  7. print diff
Success #stdin #stdout 0.01s 7988KB
stdin
Standard input is empty
stdout
24 days, 13:01:30