Skip to the content

Chikyu Earth地球

A line-drawn globe of the world's countries that turns at the Earth's own rate, with an optional realistic Earth from space and markers for any place.

Chikyu is the Japanese word 地球 for the Earth. About the name

Contents

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

NameTypeDescription
msnumber

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.46

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/chikyu-earth 0.51.1.