Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: VB5,VB6
Expertise: beginner
Aug 18, 2001

SecondsToTime - Convert a number of seconds to a Date value

' Converts a numeric value in seconds to a time value
' Example:
'    MsgBox SecondsToTime(11120) --> 3.5.20 AM
Function SecondsToTime(ByVal Seconds As Long) As Date
    
    SecondsToTime = CDate(Seconds / 86400)
    
End Function
Alberto Falossi
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date