Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import datetime
- t = datetime.datetime(2015,1,1) - datetime.datetime.now()
- days, seconds = t.days, t.seconds
- hours = days * 24 + seconds // 3600
- minutes = (seconds % 3600) // 60
- seconds = seconds % 60
- print(hours)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement