Skip to the content

Wakusei Planets惑星

The Sun, the planets and their moons as a clean line drawing, a shaded realistic drawing or a painted surface map, with real sizes, tilt and rotation, and the moons where they are at any date and time.

Wakusei is the Japanese word 惑星 for a planet. About the name

Contents

Reference · Julian dates (and the julian package's functions), calendars, time scales, sidereal time and Mars time

julianfunction

A time as a string of its Julian date with six decimals, as the julian package gives it (a tenth of a second).

Import it

import { julian } from "@johnmorrisdotca/wakusei-planets/time";

Definition

function julian(when: When): string

Parameters

NameTypeDescription
whenWhen

A Date or milliseconds since 1970.

Returns

string

The Julian date as a string.

Examples

import { julian } from "@johnmorrisdotca/wakusei-planets/time";

console.log(julian(new Date("2013-11-21T10:47:02Z")));
2456617.949329

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/wakusei-planets 0.24.0.