Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# convert seconds to hours minutes seconds

TimeSpan t = TimeSpan.FromSeconds( secs );

string answer = string.Format("{0:D2}h:{1:D2}m:{2:D2}s:{3:D3}ms", 
                t.Hours, 
                t.Minutes, 
                t.Seconds, 
                t.Milliseconds);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #seconds #hours #minutes #seconds
ADD COMMENT
Topic
Name
4+4 =