base:SecsToHMS()

You can post your code snippets here for others to use and learn from
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

base:SecsToHMS()

Post by djrikki »

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
Post Reply