def format_ad_timedelta(raw_value):
    """
    Convert a negative filetime value to an integer timedelta.
    """
    if isinstance(raw_value, bytes):
        raw_value = int(raw_value)
    return raw_value

    Convert a negative filetime value to an integer timedelta.
    
ldeep/views/ldap_activedirectory.py