Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h=int((Time)[0:2])
- m=int((Time)[3:])
- Y=int((Date)[0:4])
- M=int((Date)[5:7])
- D=int((Date)[8:])
- acum = 0
- valor = True
- while valor:
- if (m+30) >= 60:
- h += 1
- m = (m+30)-60
- if h >= 24:
- h = 0
- D += 1
- if h == 0:
- D += 1
- acum += 1
- if D > 30:
- M += 1
- D = 1
- acum += 1
- if M > 12:
- Y += 1
- M = 1
- acum += 1
- valor=False
Add Comment
Please, Sign In to add comment