mirror of
https://github.com/acamarata/nrel-spa.git
synced 2026-06-30 19:04:25 +00:00
Add typedoc and typedoc-plugin-markdown as devDependencies. Add typedoc.json config targeting src/index.ts with markdown output to .github/wiki/api. Add docs script to package.json. Generate initial API reference pages. Part of T-E8-03 — TypeDoc automation for all 12 JS/TS packages.
635 B
635 B
nrel-spa / formatTime
Function: formatTime()
formatTime(
hours):string
Defined in: index.ts:87
Format fractional hours to HH:MM:SS string. Returns "N/A" for non-finite or negative values (polar night/day scenarios).
Parameters
hours
number
Fractional hours (e.g., 12.5 for 12:30:00)
Returns
string
Formatted time string in HH:MM:SS format, or "N/A"