from datetime import datetime


def parse_dune_iso_format_to_timestamp(dune_iso_string):
    """
    Dune is incompatible with the iso format, as sometimes the amount of milliseconds
    is not represented with the right amount of digits.
    Hence, we cut of the provided time and set the end of the string to '.000000+00:00'.
    """
    return datetime.fromisoformat(dune_iso_string[0:19] + '.000000+00:00').timestamp()