def sex2dec(hour, minute, second, microsecond=0.0):
    """ Convert a sexagesimal time to decimal hours.

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

    Returns
    -------
        Time in decimal hours

    """
    return float(hour) + minute / 60.0 + (second + microsecond / 1E6) / 3600.0