(sec)
return time(hour, minute, sec)
Converts seconds to a time object

    >>> t = sec_to_time(1000)
    >>> (t.hour, t.minute, t.second)
    (0, 16, 40)
Converts seconds to a time object
Converts seconds to a time object
def sec_to_time(sec):
    """Converts seconds to a time object

    >>> t = sec_to_time(1000)
    >>> (t.hour, t.minute, t.second)
    (0, 16, 40)
    """

    s = int(sec)
    hour = int(s / 60 / 60)
    minute = int((s / 60) % 60)
    sec = int(s % 60)
    return time(hour, minute, sec)
def sec_to_time ( sec ) : s = int ( sec ) hour = int ( s / 60 / 60 ) minute = int ( ( s / 60 ) % 60 ) sec = int ( s % 60 ) return time ( hour , minute , sec )