Reference · The realistic Earth's pure parts
greenwichSiderealfunction
How far the Earth has turned against the stars at ms: Greenwich mean sidereal time, in degrees from 0 to 360. The longitude that faces a direction fixed in space goes west at this rate (about 361 degrees a day).
Import it
import { greenwichSidereal } from "@johnmorrisdotca/chikyu-earth/realistic";
Definition
function greenwichSidereal(ms: number): number
Parameters
| Name | Type | Description |
|---|---|---|
ms | number | A moment, in milliseconds since the Unix epoch. |
Returns
number
The angle in degrees.
Examples
import { greenwichSidereal } from "@johnmorrisdotca/chikyu-earth/realistic";
console.log(greenwichSidereal(Date.UTC(2000, 0, 1, 12)).toFixed(2));280.46What it prints (run when this page was built)