Last active
August 17, 2017 19:28
-
-
Save renews/499612d058116e2f25df327442a29b51 to your computer and use it in GitHub Desktop.
Show the elapsed time formated as HH:MM:SS in ruby.
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
start_time = Time.now | |
Time.at((start_time - Time.now).to_i.abs).utc.strftime '%H:%M:%S' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment