base:SecsToHMS()

You can post your code snippets here for others to use and learn from

base:SecsToHMS()

Postby djrikki » Wed Apr 15, 2015 11:42 pm

Code: Select all
Global base
base = {}

;; base:SecsToHMS(s)
; Convert seconds into Hours, Minutes and Seconds
Function base:SecsToHMS(s)
    Local h, m

    h=Int(s/3600)
    s=s-(h*3600)
    m=Int(s/60)
    s=Int(s-(m*60))
       
    Return(h, m, s)
EndFunction
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
djrikki
 
Posts: 645
Joined: Wed Apr 06, 2011 12:26 am

Return to Code snippets area

Who is online

Users browsing this forum: No registered users and 1 guest