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 / 1000000.0
        ) / 3600.0
