require 'time'f = -> s {(Time.parse(s) + 1).strftime('%T')}p ['00:00:00', '23:59:59'].map {|s| [s, f.(s)]}
Standard input is empty
[["00:00:00", "00:00:01"], ["23:59:59", "00:00:00"]]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!