Skip to content

JulianDateParts

  • The core functions, which every industry uses.

A Julian Date in two parts, whose sum is the JD (ERFA jd2cal.c Note 2: the date “is apportioned in any convenient way between the arguments”).

import type { JulianDateParts } from "@northguild/gmt";
MemberTypeDescription
jd1numberWhole days. to* writes a whole number; from* accepts any finite number.
jd2numberThe rest of the day. to* writes a value from 0 up to but not including 1.
interface JulianDateParts {
/** Whole days. `to*` writes a whole number; `from*` accepts any finite number. */
jd1: number;
/** The rest of the day. `to*` writes a value from 0 up to but not including 1. */
jd2: number;
}

types/time-scale.ts

© 2026 NorthGuild · Licences

Code examples: MIT-0. Packages: MIT. Third-party data and components: their own licences, credited where they appear. Everything else: © 2026 NorthGuild, all rights reserved.