Created
June 4, 2015 22:07
-
-
Save anonymous/5e424d1920aea9b6b65f 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 |
baweaver
commented
Jun 4, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment