# JulianDateParts

Industry: Core

:::caution[Unreleased]
Not in `@northguild/gmt` 1.21.0 on npm yet. It is on `main` and ships in the next release.
:::

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").

```ts
import type { JulianDateParts } from "@northguild/gmt";
```

## Members

| Member | Type | Description |
| --- | --- | --- |
| `jd1` | `number` | Whole days. `to*` writes a whole number; `from*` accepts any finite number. |
| `jd2` | `number` | The rest of the day. `to*` writes a value from 0 up to but not including 1. |

## Definition

```ts
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;
}
```

## Used by

- [`fromJulianDateParts`](/gmt/reference/timescale/convert/fromJulianDateParts/)
- [`toJulianDateParts`](/gmt/reference/timescale/convert/toJulianDateParts/)

## Source

[types/time-scale.ts](https://github.com/northguild/gmt/blob/main/packages/gmt/src/types/time-scale.ts)
