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

julianDayfunction

Julian day number of a moment in milliseconds since the Unix epoch.

Import it

import { julianDay } from "@johnmorrisdotca/chikyu-earth/realistic";

Definition

function julianDay(ms: number): number

Parameters

NameTypeDescription
msnumber

Milliseconds since 1970-01-01T00:00Z.

Returns

number

The Julian day number, with its fraction.

Examples

import { julianDay } from "@johnmorrisdotca/chikyu-earth/realistic";

console.log(julianDay(Date.UTC(2000, 0, 1, 12)));
2451545

What it prints (run when this page was built)

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