code: def _evalWeekday(self, datetimeString, sourceTime):
          
          s = datetimeString.strip()
          sourceTime = self._evalDT(datetimeString, sourceTime)
  
          # Given string is a weekday
          yr, mth, dy, hr, mn, sec, wd, yd, isdst = sourceTime
  
          start = datetime.datetime(yr, mth, dy, hr, mn, sec)
          wkdy = self.ptc.WeekdayOffsets[s]
  
          if wkdy > wd:
              qty = self._CalculateDOWDelta(wd, wkdy, 2,
                                            self.ptc.DOWParseStyle,
                                            self.ptc.CurrentDOWParseStyle)
          else:
              qty = self._CalculateDOWDelta(wd, wkdy, 2,
                                            self.ptc.DOWParseStyle,
                                            self.ptc.CurrentDOWParseStyle)
  
          self.currentContext.updateAccuracy(pdtContext.ACU_DAY)
          target = start + datetime.timedelta(days=qty)
          return target.timetuple()
docs: Evaluate text passed by L{_partialParseWeekday()}