Guest User

Untitled

a guest
Dec 13th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. h=int((Time)[0:2])
  2. m=int((Time)[3:])
  3.  
  4. Y=int((Date)[0:4])
  5. M=int((Date)[5:7])
  6. D=int((Date)[8:])
  7.  
  8. acum = 0
  9. valor = True
  10. while valor:
  11. if (m+30) >= 60:
  12. h += 1
  13. m = (m+30)-60
  14.  
  15. if h >= 24:
  16. h = 0
  17. D += 1
  18.  
  19. if h == 0:
  20. D += 1
  21. acum += 1
  22.  
  23. if D > 30:
  24. M += 1
  25. D = 1
  26. acum += 1
  27.  
  28.  
  29. if M > 12:
  30. Y += 1
  31. M = 1
  32. acum += 1
  33. valor=False
Add Comment
Please, Sign In to add comment