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

marsSolDatefunction

The Mars Sol Date: the count of Martian days, as the Julian date counts Earth's. 44796.0 is about 2000-01-06 00:00 TT.

Import it

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

Definition

function marsSolDate(when: When): number

Parameters

NameTypeDescription
whenWhen

A Date or milliseconds since 1970 (UTC).

Returns

number

Sols, with the fraction of the sol.

Examples

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

console.log(marsSolDate(Date.UTC(2021, 1, 18, 20, 55)).toFixed(3));
52304.455

What it prints (run when this page was built)

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