mobilePickDate strangeness...

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

mobilePickDate strangeness...

Post by paulsr » Fri Feb 15, 2013 5:31 am

Folks,

My understanding is that if I code something like...

Code: Select all

mobilePickDate "time",tShow,,,,"cancelDone"


...then the picker will show the time as specified in tShow, where tShow is in seconds. Without that variable, the picker displays the current time.

if tShow contains (for instance) 64320 ... which by my calculation is 17:52 in seconds, the picker displays 01:22.

If tShow contains 45960, which is 12:46, the picker displays 20:16.

And similar nonsense for other times.

Am I doing something wrong?

TIA

--paul

paulsr
Posts: 222
Joined: Thu Jul 19, 2012 9:47 am
Contact:

Re: mobilePickDate strangeness...

Post by paulsr » Fri Feb 15, 2013 8:05 am

Ah ha! Answering my own question...

Where the documentation says "If this value is set, then it must be specified in seconds" it doesn't mean the time of day in seconds, but the number of seconds since the start of the eon.

--paul

Post Reply