def hms2stringTime(h, m, s, precision=5):
    """ Convert a sexagesimal time to a formatted string.

    Parameters
    ----------
    hour, min, sec : int, float
    precision : int

    Returns
    -------
        String formatted HH:MM:SS.SSSSS

    """
    if h < 0 or m < 0 or s < 0:
        pm = '-'
    else:
        pm = '+'

    formString = '%s%02d:%02d:%0' + str(precision + 3) + '.' + str(precision) + 'f'
    return formString % (pm, abs(h), abs(m), abs(s))