Clock
Overview
A non-visible component to work with date and time
Blocks
Events
On Interval
Handles the given interval
loading block...
On Time Out
Handles the given timeout
loading block...
Methods
Now
Returns: String
Gets the current timestamp
loading block...
Set Interval
Returns: Number
Triggers On Interval block which runs for every given interval of time. This blocks returns the interval id.
loading block...
| Input Params | Type | Description |
|---|---|---|
| interval | Number | It should be in milliseconds. i.e.; 1000 for 1 second. |
set time out
Triggers On Time Out which runs once after given time out period
loading block...
| Input Params | Type | Description |
|---|---|---|
| time out | Number | It should be in milliseconds. i.e.; 1000 for 1 second. |
Clear Interval
Clears the interval which is created by Set Interval block
loading block...
| Input Params | Type | Description |
|---|---|---|
| id | Number | The generated id when created by using Set Interval block |