Reference · Rockets, variants, parts and the fit check
clockWordsfunction
A time as words: T+2:35, T-0:03, T+1:05:20. A blank says so.
Import it
import { clockWords } from "@johnmorrisdotca/uchusen-rockets";
Definition
function clockWords(at: Figure): string
Parameters
| Name | Type | Description |
|---|---|---|
at | Figure<number> | A figure holding seconds from the flight's zero. |
Returns
string
The time as text, such as T+2:35. A blank figure gives "Time: no source".
Examples
import { clockWords } from "@johnmorrisdotca/uchusen-rockets";
console.log(clockWords({ value: 155, source: "wikipedia-starship" }), clockWords({ value: -3, source: null }));T+2:35 T-0:03What it prints (run when this page was built)