fork download
  1. using static System.Console;
  2. using System;
  3.  
  4. public class Program {
  5. public static void Main() {
  6. var time = "00:97:54".Split(':');
  7. WriteLine(new TimeSpan(int.Parse(time[0]), int.Parse(time[1]), int.Parse(time[2])));
  8. }
  9. }
  10.  
  11. //https://pt.stackoverflow.com/q/205961/101
Success #stdin #stdout 0.02s 16552KB
stdin
Standard input is empty
stdout
01:37:54