T tshad Mar 11, 2005 #1 Is there a quick function in vb out there that will convert seconds to minutes and seconds? Thanks, Tom
Is there a quick function in vb out there that will convert seconds to minutes and seconds? Thanks, Tom
K Kevin Spencer Mar 11, 2005 #2 How about a couple of operators instead? seconds \ 60 = minutes seconds Mod 60 = seconds -- HTH, Kevin Spencer Microsoft MVP ..Net Developer What You Seek Is What You Get.
How about a couple of operators instead? seconds \ 60 = minutes seconds Mod 60 = seconds -- HTH, Kevin Spencer Microsoft MVP ..Net Developer What You Seek Is What You Get.
K Karl Seguin Mar 11, 2005 #3 Or dim t as new TimeSpan(0,0,135) t.Minutes t.Seconds Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
Or dim t as new TimeSpan(0,0,135) t.Minutes t.Seconds Karl -- MY ASP.Net tutorials http://www.openmymind.net/ - New and Improved (yes, the popup is annoying) http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to come!)
T tshad Mar 11, 2005 #4 Kevin Spencer said: How about a couple of operators instead? seconds \ 60 = minutes seconds Mod 60 = seconds Click to expand... That works fine. I was just interested to see if there was a function that did it as part of an object. Thanks, Tom
Kevin Spencer said: How about a couple of operators instead? seconds \ 60 = minutes seconds Mod 60 = seconds Click to expand... That works fine. I was just interested to see if there was a function that did it as part of an object. Thanks, Tom
K Kevin Spencer Mar 11, 2005 #5 Yes. You would have to put the values into a DateTime object and use the ..Minutes and .Seconds properties. But my method is more efficient. -- HTH, Kevin Spencer Microsoft MVP ..Net Developer What You Seek Is What You Get.
Yes. You would have to put the values into a DateTime object and use the ..Minutes and .Seconds properties. But my method is more efficient. -- HTH, Kevin Spencer Microsoft MVP ..Net Developer What You Seek Is What You Get.
T tshad Mar 11, 2005 #6 Kevin Spencer said: Yes. You would have to put the values into a DateTime object and use the .Minutes and .Seconds properties. But my method is more efficient. Click to expand... I agree. Since there isn't much to it (I also put a Cint around the minutes calculation), there is really no reason to set up a separate object to handle it. Thanks, Tom
Kevin Spencer said: Yes. You would have to put the values into a DateTime object and use the .Minutes and .Seconds properties. But my method is more efficient. Click to expand... I agree. Since there isn't much to it (I also put a Cint around the minutes calculation), there is really no reason to set up a separate object to handle it. Thanks, Tom
K Kevin Spencer Mar 11, 2005 #7 Since there isn't much to it (I also put a Cint around the minutes calculation), there is really no reason to set up a separate object to handle it. Click to expand... No need for a CInt around anything. The VB.Net "\" operator returns an integer. -- HTH, Kevin Spencer Microsoft MVP ..Net Developer What You Seek Is What You Get.
Since there isn't much to it (I also put a Cint around the minutes calculation), there is really no reason to set up a separate object to handle it. Click to expand... No need for a CInt around anything. The VB.Net "\" operator returns an integer. -- HTH, Kevin Spencer Microsoft MVP ..Net Developer What You Seek Is What You Get.
T tshad Mar 11, 2005 #8 Kevin Spencer said: No need for a CInt around anything. The VB.Net "\" operator returns an integer. Click to expand... I didn't know about that one. You're right. It works fine that way. I just automatically used "/". Thanks, Tom
Kevin Spencer said: No need for a CInt around anything. The VB.Net "\" operator returns an integer. Click to expand... I didn't know about that one. You're right. It works fine that way. I just automatically used "/". Thanks, Tom