{>> Non-Visible component<<}
Category | Requires | Version |
---|---|---|
Sensors | API 21, Android 5.0 Lollipop | 4 |
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, yyyyHH: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.
Timer has gone off.
Returns: Instantintime
An instant in time some days after the argument
Params | |
---|---|
instant | Instantintime |
quantity | Number |
Returns: Instantintime
An instant in time some duration after the argument
Params | |
---|---|
instant | Instantintime |
quantity | Number |
Returns: Instantintime
An instant in time some hours after the argument
Params | |
---|---|
instant | Instantintime |
quantity | Number |
Returns: Instantintime
An instant in time some minutes after the argument
Params | |
---|---|
instant | Instantintime |
quantity | Number |
Returns: Instantintime
An instant in time some months after the argument
Params | |
---|---|
instant | Instantintime |
quantity | Number |
Returns: Instantintime
An instant in time some seconds after the argument
Params | |
---|---|
instant | Instantintime |
quantity | Number |
Returns: Instantintime
An instant in time some weeks after the argument
Params | |
---|---|
instant | Instantintime |
quantity | Number |
Returns: Instantintime
An instant in time some years after the argument
Params | |
---|---|
instant | Instantintime |
quantity | Number |
Returns: Number
The day of the month
Params | |
---|---|
instant | Instantintime |
Returns: Number
Milliseconds elapsed between instants
Params | |
---|---|
start | Instantintime |
end | Instantintime |
Returns: Number
convert duration to days
Params | |
---|---|
duration | Number |
Returns: Number
convert duration to hours
Params | |
---|---|
duration | Number |
Returns: Number
convert duration to minutes
Params | |
---|---|
duration | Number |
Returns: Number
convert duration to seconds
Params | |
---|---|
duration | Number |
Returns: Number
convert duration to weeks
Params | |
---|---|
duration | Number |
Returns: Text
Text representing the date of an instant in the specified pattern
Params | |
---|---|
instant | Instantintime |
pattern | Text |
Returns: Text
Text representing the date and time of an instant in the specified pattern
Params | |
---|---|
instant | Instantintime |
pattern | Text |
Returns: Text
Text representing the time of an instant
Params | |
---|---|
instant | Instantintime |
Returns: Number
The instant in time measured as milliseconds since 1970.
Params | |
---|---|
instant | Instantintime |
Returns: Number
The hour of the day
Params | |
---|---|
instant | Instantintime |
Returns: Instantintime
Allows the user to set the clock to be a date value Valid values for the month field are 1-12 and 1-31 for the day field.
Params | |
---|---|
year | Number |
month | Number |
day | Number |
Returns: Instantintime
An instant in time specified by MM/dd/YYYY hh:mm:ss or MM/dd/YYYY or hh:mm
Params | |
---|---|
from | Text |
Returns: Instantintime
An instant in time specified by the milliseconds since 1970.
Params | |
---|---|
millis | Number |
Returns: Instantintime
Allows the user to set the date and time to be displayed when the clock opens Valid values for the month field are 1-12 and 1-31 for the day field.
Params | |
---|---|
year | Number |
month | Number |
day | Number |
hour | Number |
minute | Number |
second | Number |
Returns: Instantintime
Allows the user to set the time of the clock - Valid format is hh:mm:ss
Params | |
---|---|
hour | Number |
minute | Number |
second | Number |
Returns: Number
The minute of the hour
Params | |
---|---|
instant | Instantintime |
Returns: Number
The month of the year represented as a number from 1 to 12)
Params | |
---|---|
instant | Instantintime |
Returns: Text
The name of the month
Params | |
---|---|
instant | Instantintime |
Returns: Instantintime
The current instant in time read from phone's clock
Returns: Number
The second of the minute
Params | |
---|---|
instant | Instantintime |
Returns: Number
The phone's internal time
Returns: Number
The day of the week represented as a number from 1 (Sunday) to 7 (Saturday)
Params | |
---|---|
instant | Instantintime |
Returns: Text
The name of the day of the week
Params | |
---|---|
instant | Instantintime |
Returns: Number
The year
Params | |
---|---|
instant | Instantintime |
Boolean Default: True ➖ Read Write - Designer Blocks
Will fire even when application is not showing on the screen if true
Boolean Default: True ➖ Read Write - Designer Blocks
Fires timer if true
Number Default: 1000 ➖ Read Write - Designer Blocks
Interval between timer events in ms