julianfunction
A time as a string of its Julian date with six decimals, as the julian package gives it (a tenth of a second).
Import it
import { julian } from "@johnmorrisdotca/wakusei-planets/time";
Definition
function julian(when: When): string
Parameters
| Name | Type | Description |
|---|---|---|
when | When | A |
Returns
string
The Julian date as a string.
Examples
import { julian } from "@johnmorrisdotca/wakusei-planets/time";
console.log(julian(new Date("2013-11-21T10:47:02Z")));2456617.949329What it prints (run when this page was built)