greenwichApparentSiderealTimefunction
The Greenwich apparent sidereal time in degrees, 0 to 360: the mean time with the equation of the equinoxes added, which is what the hour angle of a body is measured against.
Import it
import { greenwichApparentSiderealTime } from "@johnmorrisdotca/wakusei-planets/time";
Definition
function greenwichApparentSiderealTime(when: When, dut1?: number): number
Parameters
| Name | Type | Description |
|---|---|---|
when | When | A |
dut1 (optional) | number | UT1 minus UTC in seconds, from the IERS; default 0. |
Returns
number
Degrees.
Examples
import { greenwichApparentSiderealTime } from "@johnmorrisdotca/wakusei-planets/time";
console.log((greenwichApparentSiderealTime(Date.UTC(1987, 3, 10)) / 15).toFixed(4));13.1795What it prints (run when this page was built)