def _get_end_date(self, filename): from cis.parse_datetime import parse_datetimestr_to_std_time metadata_dict = hdf.get_hdf4_file_metadata(filename) date = self._parse_datetime(metadata_dict, 'RANGEENDINGDATE') time = self._parse_datetime(metadata_dict, 'RANGEENDINGTIME') datetime_str = date + " " + time return parse_datetimestr_to_std_time(datetime_str)
def _get_start_date(self, filename): import datetime as dt metadata_dict = hdf.get_hdf4_file_metadata(filename) date = self._parse_datetime(metadata_dict, 'RANGEBEGINNINGDATE') time = self._parse_datetime(metadata_dict, 'RANGEBEGINNINGTIME') datetime_str = date + " " + time return dt.datetime.strptime(datetime_str, "%Y-%m-%d %H:%M:%S.%f")
def _get_start_date(self, filename): from cis.parse_datetime import parse_datetimestr_to_std_time metadata_dict = hdf.get_hdf4_file_metadata(filename) date = self._parse_datetime(metadata_dict, "RANGEBEGINNINGDATE") time = self._parse_datetime(metadata_dict, "RANGEBEGINNINGTIME") datetime_str = date + " " + time return parse_datetimestr_to_std_time(datetime_str)