code: def TAF_datetime_to_datetime_object(
      datetime_string             = None,
      datetime_for_year_and_month = None  # e.g. datetime.datetime.utcnow()
      ):
  
      
  
      if datetime_string.endswith("24"):
  
          datetime_string = datetime_string[:-2] + "00"
  
          tmp = datetime.datetime.strptime(datetime_string, "%d%H") +\
                datetime.timedelta(days = 1)
  
      else:
  
          tmp = datetime.datetime.strptime(datetime_string, "%d%H")
  
      return datetime.datetime(
          datetime_for_year_and_month.year,
          datetime_for_year_and_month.month,
          tmp.day,
          tmp.hour,
          tmp.minute
      )
docs: Preprocess datetimes to change hours from 24 to 00, incrementing the date
      as necessary.