ReferenceScripting APIMotionClock
MotionClock
interfaceThe clock where the desktop is.
| Name | MotionClock |
|---|---|
| Kind | interface |
| Script reaches it as | MotionScene.clock · MotionEvents.dayChanged |
| Since | 0.3 |
Syntax
interface MotionClock { … }Properties
| Name | Type | Description |
|---|---|---|
hourproperty | readonly number | The hour, 0 to 23. |
minuteproperty | readonly number | The minute, 0 to 59. |
secondproperty | readonly number | The second, 0 to 59. |
dayproperty | readonly number | How far through the day it is: 0 at midnight to 1. |
weekdayproperty | readonly number | The day of the week: 0 Sunday to 6 Saturday. |
monthproperty | readonly number | The month, 1 to 12. |
dateproperty | readonly number | The day of the month, 1 to 31. |
daylightproperty | readonly number | How light it is by the clock: 0 at night to 1 at one in the afternoon. |
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.