def hour_min_sec(secs: int, hms=False):
    """Convert seconds into a more readable hh:mm:ss representation
    :secs Number of seconds
    :hms Hours:Minutes:Seconds representation, rather than the default seconds."""
    if secs is not None:
        m, s = divmod(secs, 60)
        m = int(m)
        s = int(s)
        if m > 59:
            h, m = divmod(m, 60)
            h = int(h)
            m = int(m)
            if hms:
                return f'{h}h {m:02d}m {s:02d}s'
            else:
                return f'{h}:{m:02d}:{s:02d}'
        else:
            if hms:
                return f'{m}m {s:02d}s'
            else:
                return f'{m}:{s:02d}'
    else:
        return '_:__'