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

fromJulianDayAndMillisecondsfunction

A time from a Julian day and the milliseconds into it, with no digit lost: fromJulianDayAndMilliseconds(toJulianDay(t), toMillisecondsInJulianDay(t)) is t.

Import it

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

Definition

function fromJulianDayAndMilliseconds(day: number, msInDay: number): number

Parameters

NameTypeDescription
daynumber

The integer Julian day number.

msInDaynumber

Milliseconds since the day began at noon.

Returns

number

Milliseconds since 1970.

Examples

import { fromJulianDayAndMilliseconds, toJulianDay, toMillisecondsInJulianDay } from "@johnmorrisdotca/wakusei-planets/time";

const t = Date.UTC(2026, 10, 7, 9, 30, 15, 123);
console.log(fromJulianDayAndMilliseconds(toJulianDay(t), toMillisecondsInJulianDay(t)) === t);
true

What it prints (run when this page was built)

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