Advertisement
Fhernd

diferencia-arbitraria.py

Jan 21st, 2018
1,555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. import datetime
  2.  
  3. diferencia = datetime.timedelta(days=15)
  4.  
  5. tiempo1 = datetime.datetime.now()
  6. print(tiempo1.day)
  7.  
  8. tiempo2 = tiempo1 + diferencia
  9. print(tiempo2.day)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement