Skip to content

Instantly share code, notes, and snippets.

@krzkrzkrz

krzkrzkrz/baz.rb Secret

Created March 25, 2014 07:34
Show Gist options
  • Save krzkrzkrz/3d1a422c027bbbcf2ded to your computer and use it in GitHub Desktop.
Save krzkrzkrz/3d1a422c027bbbcf2ded to your computer and use it in GitHub Desktop.
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