Let's make another test-rig stack, which we'll use to try out some date and time pickers:
ReminderFunctions
, and save the stack.dateinseconds
and the other timeinseconds
.Pick Date
and Pick Time
.on mouseUp mobilePickDate date put the result into tDate convert tDate to seconds put tDate into field "dateinseconds" end mouseUp
on mouseUp mobilePickDate "time" put the result into tTime convert tTime to seconds put tTime into field timeinseconds end mouseUp
December 25th, 2012
and click on Done.1 am
. The following image shows how the picker looks different on iOS and the Android simulator:We just made two simple scripts that call the native date or time picker and convert the result into seconds to then show them in a field. What is interesting to note is that for the Pick Time case, it doesn't return the number of seconds of the current day, that is, all the seconds since midnight of January 1, 1970. In order to set a notification time for a particular time of a particular date, we have to do a little arithmetic. We'll go into that a little later when we make the actual reminder app in the Making the reminders app section of this chapter.
You may have noticed that the acronym for "Coordinated Universal Time" is UTC and not CUT. Why is that?
Answer: 2
The French may not have proactively objected, but indeed, the acronym of UTC was chosen so as to not specifically match the English version of the phrase. It also fell in nicely with the other acronyms such as UT0, UT1, and so on.