Is there a command to display number of seconds as hrs:min:seconds?

Bill Vlahos bvlahos at mac.com
Wed Oct 16 20:23:02 EDT 2019


I’m writing a countdown timer application and want to display the remaining time not as the number of seconds but in the format of HR:MIN:SEC left.

For example 75 seconds would display as “0:1:15”.
130 seconds would display as “0:2:10”.

I know how to do the math to figure it out but I’m wondering if there is a built in function to do this.

Convert wants to deal with actual time so I would get something like “0:1:15 PM”.

Thanks,
Bill Vlahos



More information about the use-livecode mailing list