marsSolDatefunction
The Mars Sol Date: the count of Martian days, as the Julian date counts Earth's. 44796.0 is about 2000-01-06 00:00 TT.
Import it
import { marsSolDate } from "@johnmorrisdotca/wakusei-planets/time";
Definition
function marsSolDate(when: When): number
Parameters
| Name | Type | Description |
|---|---|---|
when | When | A |
Returns
number
Sols, with the fraction of the sol.
Examples
import { marsSolDate } from "@johnmorrisdotca/wakusei-planets/time";
console.log(marsSolDate(Date.UTC(2021, 1, 18, 20, 55)).toFixed(3));52304.455What it prints (run when this page was built)