Skip to content

Function: hoursToWeatherPeriod() ​

ts
function hoursToWeatherPeriod(hours: number): string;

Transform hour to weather period section label.

Example: 6 -> "06:00:00".

Parameters ​

ParameterTypeDescription
hoursnumberHours to transform.

Returns ​

string

Section for provided hour period.