Wednesday 15 June 2011

c# - TimeSpan.Parse time format hhmmss -


In C # i 12:45:10 for the format like 124510 is the time in hhmms and I need to know the total seconds I have used the timepan ("12:45:10"). ToTalSeconds but this format does not take hhmmss. Is this a good way to convert?

this can help

  system; Using System.Globalization; Namespace Console Application 7 (Class Programs {Static Wide Men (String [] ARGs) {Datetime D = Datetime. Purs Auxact ("124510", "HMMS", Culture Info. InverterTech); Console.light line ("Total seconds:" + D. Time of DadsSecunds); Console.ReadLine ();}}}  

Note that this will not handle 24 hr time, HHmmss should be used.


No comments:

Post a Comment