Here's a quick little class I discovered in the framework that helps you format time.
It's called the timespan class, and here's an example:
VB
Dim t As New TimeSpan(0, 538, 0)
'Then you have the 2 properties
t.Hours
t.Minutes
C#
var t = new TimeSpan(0, 538, 0);
//Then you have the 2 properties
t.Hours
t.Minutes
Pretty cool little class! For more info click here:
http://msdn.microsoft.com/en-us/library/system.timespan.aspx
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment