Skip to main content

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 ParamsTypeDescription
intervalNumberIt 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 ParamsTypeDescription
time outNumberIt 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 ParamsTypeDescription
idNumberThe generated id when created by using Set Interval block