Milliseconds to Minutes
-
anyone have a function that converts milliseonds to minutes and seconds? im working in vb.net. thanks a bunch.
-
anyone have a function that converts milliseonds to minutes and seconds? im working in vb.net. thanks a bunch.
You can either write this function yourself, the math is very easy, or you can use the TimeSpan class to do it for you.
Dim x As New TimeSpan(0, 0, 0, 0, _milliseconds_) Console.WriteLine("Minutes: " & x.Minutes) Console.WriteLine("Seconds: " & x.Seconds)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
You can either write this function yourself, the math is very easy, or you can use the TimeSpan class to do it for you.
Dim x As New TimeSpan(0, 0, 0, 0, _milliseconds_) Console.WriteLine("Minutes: " & x.Minutes) Console.WriteLine("Seconds: " & x.Seconds)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007thank you!
-
You can either write this function yourself, the math is very easy, or you can use the TimeSpan class to do it for you.
Dim x As New TimeSpan(0, 0, 0, 0, _milliseconds_) Console.WriteLine("Minutes: " & x.Minutes) Console.WriteLine("Seconds: " & x.Seconds)
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Of course we don't care about rounding... :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
CPallini wrote:
Of course we don't care about rounding...
The exact specifics of which are left up to the reader, depending on specifications of course! :-D
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007