Milliseconds -> minutes and seconds

Peter W A Wood peterwawood at
Sat Jun 28 00:45:00 EDT 2014

Hi Gerry

Is this any help?

	put 124869 into tData
	put tData div 60000 into tMinutes
	put tData mod 60000 into tRem
	put tRem div 1000 into tSeconds
	put tMinutes & ":" & tSeconds



On 28 Jun 2014, at 10:57, Gerry Orkin <gerry.orkin at> wrote:

> Hi all
> I'm playing an .mp3 file in iOS and saving the elapsed playing time (in milliseconds as reported by the native player) into an sqlite database as it plays. That's working fine.
> I'm now struggling to convert those milliseconds into a MM:SS format for real time display. Anyone done that?
> Cheers
> Gerry
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the Use-livecode mailing list