from datetime import datetime


def parse_time(dt: str) -> datetime:
    """Return a datetime object for an ERDDAP time
    
    ERDDAP time is in the format of 2019-01-10T00:00:00Z
    and it is nicer to use native datetimes for comparisons
    """
    return datetime.strptime(dt, "%Y-%m-%dT%H:%M:%SZ")