-
-
Save krzkrzkrz/3d1a422c027bbbcf2ded to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
time_until = ("Fri, 21 Mar 2014 22:00:00 +0000".to_datetime - "Sat, 22 Mar 2014 00:00:24 +0000".to_datetime) | |
ss, fr = time_until.divmod(86400) | |
h, ss = ss.divmod(3600) | |
min, s = ss.divmod(60) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment