Created
June 5, 2015 15:12
-
-
Save anonymous/3c057f08a3a6f553c64a 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
#!/usr/bin/env ruby | |
h, m, = 12, 07 | |
$_.gsub!(/(\d\d):(\d\d)/) do | |
'%02d:%02d' % (($1.to_i + h) * 60 + $2.to_i + m).divmod(60) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment