def calcWday(self, isToday): wday = datetime.weekday(datetime.utcnow() + timedelta(hours=9)) if not isToday: wday = (wday + 1) % 7 return wday