def get_end_datetime(self):
        """The end of the acquisition.

        This is a datatime without timezone in UTC.
        """

        # Use the alternate time if available (from EODS_DATASET metadata).
        try:
            end_dt = self._ds.scene_alt_end_datetime
        except __HOLE__:
            end_dt = None

        # Othewise use the original time (calcualted from scene_centre_time).
        if end_dt is None:
            end_dt = self._ds.scene_end_datetime

        return end_dt
dataset/ETHPy150Open GeoscienceAustralia/agdc/src/landsat_ingester/landsat_dataset.py/LandsatDataset.get_end_datetime