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

CivilTimetype

A date and time of day. The year is astronomical (1 BCE is 0, 2 BCE is -1), the month is 1 to 12, the day starts at 1.

Import it

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

Definition

interface CivilTime {
    year: number;
    month: number;
    day: number;
    hour: number;
    minute: number;
    second: number;
    millisecond: number;
}

Members

NameTypeDescription
yearnumber
monthnumber
daynumber
hournumber
minutenumber
secondnumber
millisecondnumber

Examples

import { toCalendar, type CivilTime } from "@johnmorrisdotca/wakusei-planets/time";

const t: CivilTime = toCalendar(Date.UTC(1957, 9, 4, 19, 26, 24));
console.log(t.year, t.month, t.day, t.hour);
1957 10 4 19

What it prints (run when this page was built)

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