Motion
Get Motion

ReferenceScripting APIMotionClock

MotionClock

interface

The clock where the desktop is.

NameMotionClock
Kindinterface
Script reaches it asMotionScene.clock · MotionEvents.dayChanged
Since0.3

Syntax

interface MotionClock { … }

Properties

NameTypeDescription
hourpropertyreadonly numberThe hour, 0 to 23.
minutepropertyreadonly numberThe minute, 0 to 59.
secondpropertyreadonly numberThe second, 0 to 59.
daypropertyreadonly numberHow far through the day it is: 0 at midnight to 1.
weekdaypropertyreadonly numberThe day of the week: 0 Sunday to 6 Saturday.
monthpropertyreadonly numberThe month, 1 to 12.
datepropertyreadonly numberThe day of the month, 1 to 31.
daylightpropertyreadonly numberHow light it is by the clock: 0 at night to 1 at one in the afternoon.