Module: calendarclock

Calendar clock handler. Operations on a solar calendar clock - set clock hands to angle corresponding to solar date in year. May handle month, day, hour, minute and second hands. All hands do not need to exist.
Version:
  • M2022-02-10
Author:
  • Louis A. de Fouquières https://github.com/Louis-Aime
License:
  • MIT 2016-2022
Source:

Classes

SolarClock

Type Definitions

Clock

Elements of any clock object. Missing elements shall not be used.
Type:
  • Object
Properties:
Name Type Description
yearDisplay Element where the year shall be displayed.
clockhand Object the hands of the clock. Any missing hand will not be used.
Properties
Name Type Description
month Element a hand to be rotated, indicates the month.
day Element a hand to be rotated, indicates the day in month.
hour Element a hand to be rotated, indicates the hour (12 hours dial).
minute Element a hand to be rotated, the minute of time.
second Element a hand to be rotated, the second of time.
dragon Element a hand to be rotated, represents the dragon i.e. the lunar nodes.
centre Object same elements as clockhand, the centre of the respective hands.
ampm Element where "am" or "pm" shall be indicated.
seasonmark Object the season marks on the dial. The centre is centre.month.
Properties
Name Type Description
winter Element the season mark for winter.
spring Element the season mark for spring.
summer Element the seasonmark for summer.
autumn Element the season mark for autumn.
moon Object the moon elements.
Properties
Name Type Description
moondisk Element a disk (centre and radius), the lit moon as in fullmoon.
moonphase Element a disk that represents the "path" shaded part on the moon.
Since:
  • M2021-08-27
Source: