mars

Calendar

 

Calendar

Calendar component is used to handle date and time.

Example

Using setData block to save a value of someValue with the key someKey.

example



Blocks

getNow

Initialize and retrieve the current time value in milliseconds.

get now

TYPEEXPLANATIONREQUIRED
CalendarCalendar ComponentYes

getTime

Retrieve the time retrieved from the getNow block.

get time

TYPEEXPLANATIONREQUIRED
CalendarCalendar ComponentYes

setTime

Set the Calendar component to a specific time value (ms).

set time

TYPEEXPLANATIONREQUIRED
CalendarCalendar ComponentYes
NumberTime in millisecondsYes

addValue

Add an amount of time to the Calendar component.

add value

TYPEEXPLANATIONREQUIRED
CalendarCalendar ComponentYes
TimeType of time from: YEAR, MONTH, DAY_OF_MONTH, HOUR, MINUTE, SECONDYes
NumberValue to addNo

setValue

Set a specific time value on a Calendar component.

set value

TYPEEXPLANATIONREQUIRED
CalendarCalendar ComponentYes
TimeType of time from: YEAR, MONTH, DAY_OF_MONTH, HOUR, MINUTE, SECONDYes
NumberValue to setNo

Format

Format the time (ms) into a prettified format. Read more here.

format

TYPEEXPLANATIONREQUIRED
CalendarCalendar ComponentYes
StringFormat to set the time toNo

difference

Find the difference between two Calendar components.

difference

TYPEEXPLANATIONREQUIRED
CalendarFirst Calendar ComponentYes
CalendarSecond Calendar ComponentYes

Post a Comment

0 Comments