def is_ms(start_date, end_date, duration):
    """
    Checks if the duration given between the two dates corresponds more closely to milliseconds than seconds
    :param start_date: datetime object corresponding to the start date
    :param end_date: datetime object corresponding to the end date
    :param duration: Duration given in the data set between start_date and end_date
    :return: True if time is in milliseconds, False otherwise
    """
    percent_error_for_conversion = 0.8
    return duration - duration * percent_error_for_conversion < (end_date -
        start_date).total_seconds(
        ) * 1000 < duration + duration * percent_error_for_conversion
