def compare_timestamps(modified_time, cached_time):
    if cached_time is None or modified_time is None:
        return False
    if cached_time.endswith(".000Z"):
        return cached_time == epoch_time_to_iso(floor(modified_time))
    else:
        return cached_time == epoch_time_to_iso(modified_time)
Compare two ISO formatted timestamps, with a special case when cached_time
dataset/ETHPy150Open Sage-Bionetworks/synapsePythonClient/synapseclient/cache.py/compare_timestamps