From sec to min function

mariano_donati

Active member
Joined
Nov 30, 2005
Messages
41
Programming Experience
Beginner
Hi, i need to get minutes from value in seconds. Is there some built-in function wich allows me to do that?
Thank you very much!.
 
VB.NET:
Dim ts As New TimeSpan(0, 0, 345)
MsgBox(ts.Minutes & " minutes and " & ts.Seconds & " seconds")
 
Thanks you both guys... I had already got it and i was about to post the solution. I didn't know about time span class. What i do is as follow:

Dim Interval As TImeSpan = TimeSpan.FromSeconds(TimeInSecs) 'Using shared method

and then get the info.

I hope that can be helpful for any people in this forum.
Good luck! and if i don't see you, have a happy new year!
 
Back
Top