fork download
  1. require 'time'
  2. f = -> s {(Time.parse(s) + 1).strftime('%T')}
  3. p ['00:00:00', '23:59:59'].map {|s| [s, f.(s)]}
Success #stdin #stdout 0.02s 8412KB
stdin
Standard input is empty
stdout
[["00:00:00", "00:00:01"], ["23:59:59", "00:00:00"]]