Is there a command to display number of seconds as hrs:min:seconds?
J. Landman Gay
jacque at hyperactivesw.com
Thu Oct 17 11:44:18 EDT 2019
Show-off. :-)
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On October 17, 2019 5:22:44 AM Mark Waddingham via use-livecode
<use-livecode at lists.runrev.com> wrote:
> On 2019-10-17 10:50, Klaus major-k via use-livecode wrote:
>> save some lines by setting the numberformat first (lazy moi :-)
>>
>> ...
>>
>
> Save even more lines by using format, div and mod...
>
> function formatRemainingTime pSeconds
> return format("%02d:%02d:%02d", pSeconds div 3600, (pSeconds mod 3600)
> div 60, pSeconds mod 60)
> end formatRemainingTime
>
> Warmest Regards,
>
> Mark.
>
> --
> Mark Waddingham ~ mark at livecode.com ~ http://www.livecode.com/
> LiveCode: Everyone can create apps
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list