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

toDatefunction

The Date of a Julian date (a number, or the string julian gives), rounded to the millisecond.

Import it

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

Definition

function toDate(jd: number | string): Date

Parameters

NameTypeDescription
jdstring | number

The Julian date.

Returns

Date

A Date.

Examples

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

console.log(toDate("2456617.949335").toISOString());
2013-11-21T10:47:02.544Z

What it prints (run when this page was built)

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