Reference · The globe as an SVG string
spinAtfunction
How far the Earth has turned after ms milliseconds, in degrees.
Import it
import { spinAt } from "@johnmorrisdotca/chikyu-earth";
Definition
function spinAt(ms: number): number
Parameters
| Name | Type | Description |
|---|---|---|
ms | number | A time span in milliseconds. |
Returns
number
The turn in degrees; a whole SIDEREAL_DAY_MS is 360.
Examples
import { SIDEREAL_DAY_MS, spinAt } from "@johnmorrisdotca/chikyu-earth";
console.log(spinAt(SIDEREAL_DAY_MS / 4));90What it prints (run when this page was built)