Skip to the content

Hoshi Stars星

The stars you can see without a telescope, with names, colours and distances; the 88 constellations with their lines and boundaries; the Messier objects; and seven map projections to draw them on.

Hoshi is the Japanese word 星 for a star. About the name

Contents

Reference · /chart

markerTimefunction

A moment in milliseconds since 1970.

Import it

import { markerTime } from "@johnmorrisdotca/hoshi-stars/chart";

Definition

function markerTime(when: MarkerWhen | undefined): number | undefined

Parameters

NameTypeDescription
whenMarkerWhen | undefined

An ISO 8601 text, a number of milliseconds or a Date.

Returns

number | undefined

The milliseconds, or undefined when there is none or it cannot be read.

Examples

import { markerTime } from "@johnmorrisdotca/hoshi-stars/chart";

console.log(markerTime("2026-11-08"), markerTime("not a date"));
// 1794096000000 undefined
1794096000000 undefined

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/hoshi-stars 0.47.0.