Skip to main content

float_as_time

No overview available.

def float_as_time(
hours: float
) - > string

Converts a floating-point number representing hours into a formatted time string.

Parameters

NameTypeDescription
hoursfloatThe total number of hours to be converted into a time duration.

Returns

TypeDescription
stringThe time formatted as 'HH:MM:SS', where hours are zero-padded to at least two digits.