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.
32 lines
635 B
Markdown
32 lines
635 B
Markdown
[**nrel-spa v2.0.2**](../README.md)
|
|
|
|
***
|
|
|
|
[nrel-spa](../README.md) / formatTime
|
|
|
|
# Function: formatTime()
|
|
|
|
> **formatTime**(`hours`): `string`
|
|
|
|
Defined in: [index.ts:87](https://github.com/acamarata/nrel-spa/blob/dea28b9262311319e14e8b9f29cb072ae4aea635/src/index.ts#L87)
|
|
|
|
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"
|
|
|
|
## See
|
|
|
|
[Wiki: formatTime](https://github.com/acamarata/nrel-spa/wiki/api/formatTime)
|