modifiedJulianDatefunction
The modified Julian date: the Julian date less 2,400,000.5, so a day starts at midnight and the numbers are shorter.
Import it
import { modifiedJulianDate } from "@johnmorrisdotca/wakusei-planets/time";
Definition
function modifiedJulianDate(when: When): number
Parameters
| Name | Type | Description |
|---|---|---|
when | When | A |
Returns
number
The modified Julian date.
Examples
import { modifiedJulianDate } from "@johnmorrisdotca/wakusei-planets/time";
console.log(modifiedJulianDate(Date.UTC(2000, 0, 1)));51544What it prints (run when this page was built)