def str_time(t):
    """ Return the time such as %H:%M:%S.

    Parameters
    ----------
    t : int
        Time in seconds.

    Returns
    -------
    str
        Time in hours, minutes and seconds.

    """
    txt = ''
    s, t = t % 60, t // 60
    if s < 10:
        s = '0' + str(s)

    m, h = t % 60, t // 60
    if m < 10:
        m = '0' + str(m)

    if h > 24:
        h, d = h % 24, h // 24

        txt += str(d) + ' days '

    if h < 10:
            h = '0' + str(h)

    return txt + '{}:{}:{}'.format(h, m, s)