Milliseconds -> minutes and seconds

Peter W A Wood peterwawood at gmail.com
Sat Jun 28 06:45:00 CEST 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

Regards

Peter



On 28 Jun 2014, at 10:57, Gerry Orkin <gerry.orkin at gmail.com> 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 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