mirror of
https://github.com/acamarata/nrel-spa.git
synced 2026-07-01 11:24:25 +00:00
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"