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