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

toJulianDayfunction

The whole Julian day of a time. A Julian day starts at noon, so 11:59 and 12:00 are in different days.

Import it

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

Definition

function toJulianDay(when: When): number

Parameters

NameTypeDescription
whenWhen

A Date or milliseconds since 1970.

Returns

number

The integer Julian day number.

Examples

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

console.log(toJulianDay(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/wakusei-planets 0.24.0.