convert to time question

Thierry 00bioarchimed at free.fr
Wed Oct 15 18:03:29 EDT 2008


Le 15 oct. 08 à 23:28, Jim Ault a écrit :

> Unfortunately I am not the one to help here, since I don't know all  
> the
> variations of the operating systems on which  convert is dependent,  
> daylight
> savings settings, time zones, etc.  Hopefully someone will chime in  
> on this
> for you.  It is not a simple issue.

Yes, I understand.

So, to go ahead, I did make this little convert function,
which transforms any seconds into his hh::mm equivalent.
It's a duration in fact, not a clock time !

function MyConvert t
    put t div 3600 into h
    put ( t - h * 3600 ) div 60 into m
    return format( "%02d:%02d", h, m)
end MyConvert

Out of curiosity, I would be very much interested to understand
how we can make the build in convert command work ?

Any convert expert ?

Regards,
Thierry




More information about the use-livecode mailing list