def seconds_to_hhmmss(time_s):
    """Converts a time interval given in seconds to hh:mm:ss.
    Input can either be a string or floating point.
    'ss' is rounded to the closest integer.

    Returns a string: []h[]m[]s
    """
    time_s = float(time_s)

    hh = int(time_s/3600)
    time_s = time_s % 3600
    mm = int(time_s/60)
    ss = round(time_s % 60)

    return "{}h{}m{}s".format(hh, mm, ss)