f = @(s) datestr(addtodate(datenum(s), 1, 'second'), 'HH:MM:SS');in = ['00:00:00';'23:59:59'], out = f(in)
Standard input is empty
in = 00:00:00 23:59:59 out = 00:00:01 00:00:00
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!