Re: Time conversion...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello,

The code looks very convoluted.  Couldn't you just use something like this or 
am I missing something?

function secs_to_mins(integer secs)
integer minutes
    minutes=floor(secs/60)
    return sprintf("%d:%02d",{minutes,floor(secs-minutes*60)})
end function


Would that suffice?

Vince

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu