Advertisement
Fhernd

diferencia-tiempo-1.py

Jan 21st, 2018
1,563
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. import datetime
  2.  
  3. actual1 = datetime.datetime.now()
  4. actual2 = datetime.datetime.now()
  5.  
  6. diferencia = actual2 - actual1
  7.  
  8. print(diferencia.days)
  9. print(diferencia.seconds)
  10.  
  11. print(diferencia.total_seconds())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement