code: def get_closest_dt_idx(dt, dt_list):
      
      from pygeotools.lib import malib
      dt_list = malib.checkma(dt_list, fix=False)
      dt_diff = np.abs(dt - dt_list)
      return dt_diff.argmin()
docs: Get indices of dt_list that is closest to input dt