Class: SolarClock

calendarclock.SolarClock(clock)

new SolarClock(clock)

Parameters:
Name Type Description
clock Clock a graphical object as described in type section.
Source:

Methods

setHands(displayDate, TZopt, caputDate, continousopt) → {number}

Set hands on the clock.
Parameters:
Name Type Attributes Default Description
displayDate Date the reference date (UTC instant).
TZ string <optional>
"" the time zone code, system time zone if not transmitted.
caputDate Date the date that caput dragonis hand should show.
continous boolean <optional>
false if set, day and month hands shall move continuously during the day, if not, day, month and dragon hands move by one day quantum.
Source:
Returns:
number of half-days since beginning of year.
Type
number

setMoonPhase(phase) → {number}

Set SVG display as to Moon age.
Parameters:
Name Type Description
phase number phase, in radians (2 * PI is one lunar cycle).
Source:
Returns:
the return value of the setAttribute function applied to this.moon.moonphase.
Type
number

setSeasons(year) → {boolean}

Mark the dates of solstices and equinox on the dial of the clock.
Parameters:
Name Type Description
year number year for which the seasons are set.
Since:
  • M2019-08-23 (revised for typos M2019-11-30.
Source:
Returns:
true if seasons have been computed, false otherwise.
Type
boolean