Comment on page
Clock
Non-visible component that provides the instant in time using the internal clock on the phone.It can fire a timer at regularly set intervals and perform time calculations, manipulations, and conversions.
Methods to convert an instant to text are also available. Acceptable patterns are empty string, MM/DD/YYYY HH:mm:ss a, or MMM d, yyyy HH:mm. The empty string will provide the default format, which is "MMM d, yyyy HH:mm:ss a" for FormatDateTime, "MMM d, yyyy" for FormatDate. To see all possible format, please see here.
Date and Time are formatted with InstantInTime and Duration.
Instant : consists of Year, Month, DayOfMonth, Hour, Minute, and Second. An instant can be created by using MakeInstant method.
Duration : time in milliseconds elapsed between instants. Duration can be obtained by Duration method.
Will fire even when application is not showing on the screen if true
Fires timer if true
Interval between timer events in ms
Timer has gone off.
Returns an instant in time some days after the argument
Returns an instant in time some time after the argument. Duration can be obtained from Clock.Duration()
Returns an instant in time some hours after the argument
Returns an instant in time some minutes after the argument
Returns an instant in time some months after the argument
Returns an instant in time some seconds after the argument
Returns an instant in time some weeks after the argument
Returns an instant in time some years after the argument
Returns the day of the month(1-31) from the instant
Returns duration, which is milliseconds elapsed between instants
Converts the duration to the number of seconds.
Converts the duration to the number of minutes.
Converts the duration to the number of hours.
Converts the duration to the number of days.
number DurationToWeeks(Duration duration)
Converts the duration to the number of weeks.
Returns text representing the date of an instant in the specified pattern
Returns text representing the date and time of an instant in the specified pattern
Return text representing the time of an instant
Returns the instant in time measured as milliseconds since 1970.
Returns the hour of the day(0-23) from the instant
Returns an instant specified by MM/DD/YYYY hh:mm:ss or MM/DD/YYYY or hh:mm. An example text input is "06/22/2015 12:18"
Returns an instant in time specified by the milliseconds since 1970.
Returns the minute of the hour (0-59) from the instant
Returns the month of the year (1-12) from the instant
Returns the name of the month from the instant E.g. January, February, March...
Returns an instant of the current time read from phone's clock
Returns the second of the minute (0-59) from the instant
Returns the phone's internal time
Returns the day of the week represented as a number from 1 (Sunday) to 7 (Saturday)
Returns the name of the day of the week from the instant
Returns the year from the instant
Last modified 5yr ago