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

daysInMonthfunction

The number of days in a month; October 1582 has 21 in the auto calendar, the ten days of the switch being left out.

Import it

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

Definition

function daysInMonth(year: number, month: number, calendar?: Calendar): number

Parameters

NameTypeDescription
yearnumber

The astronomical year.

monthnumber

1 to 12.

calendar (optional)Calendar

gregorian, julian or auto.

Returns

number

The days in the month.

Examples

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

console.log(daysInMonth(2024, 2), daysInMonth(1582, 10));
29 21

What it prints (run when this page was built)

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