Seconds to Time

  • Thread starter Thread starter david.pope
  • Start date Start date
D

david.pope

Does the .Net framework provide a method to convert seconds into a readable
time format?

Thanks,

D
 
David,

You can use the static FromSeconds method to create a TimeSpan instance.
At that point, you can just use the ToString method to produce a string that
represents that amount of time (days, hours, minutes, seconds).

Hope this helps.
 
You the man!

Thanks,

D
Nicholas Paldino said:
David,

You can use the static FromSeconds method to create a TimeSpan
instance. At that point, you can just use the ToString method to produce a
string that represents that amount of time (days, hours, minutes,
seconds).

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

david.pope said:
Does the .Net framework provide a method to convert seconds into a
readable time format?

Thanks,

D
 
Back
Top