spacepy.time.sec2hms

spacepy.time.sec2hms(sec, rounding=True, days=False, dtobj=False)[source]

Convert seconds of day to hours, minutes, seconds

Parameters
secfloat

Seconds of day

Returns
out[hours, minutes, seconds] or datetime.timedelta
Other Parameters
roundingboolean

set for integer seconds

daysboolean

set to wrap around day (i.e. modulo 86400)

dtobjboolean

set to return a timedelta object