toTerrestrialTimefunction
A moment in UTC as the same moment in terrestrial time, on the same scale of milliseconds since 1970.
Import it
import { toTerrestrialTime } from "@johnmorrisdotca/wakusei-planets/time";
Definition
function toTerrestrialTime(when: When): number
Parameters
| Name | Type | Description |
|---|---|---|
when | When | A |
Returns
number
The same moment in TT, in milliseconds.
Examples
import { toTerrestrialTime } from "@johnmorrisdotca/wakusei-planets/time";
const utc = Date.UTC(2000, 0, 1, 12);
console.log((toTerrestrialTime(utc) - utc) / 1000);64.184What it prints (run when this page was built)