- print time.localtime(self.begin).tm_wday
- print day
- print str(now) + " " + str(self.end) + " " + str(self.begin)
- while ((day[time.localtime(self.begin).tm_wday] != 0) and (self.end < now)):
- print str(now) + " " + str(self.end) + " " + str(self.begin)
+ print time.strftime("%c", time.localtime(now))
+ print time.strftime("%c", time.localtime(self.begin))
+ print time.strftime("%c", time.localtime(self.end))
+ print str(time.localtime(self.begin).tm_wday)
+ while ((day[time.localtime(self.begin).tm_wday] != 0) or ((day[time.localtime(self.begin).tm_wday] == 0) and self.end < now)):
+ print time.strftime("%c", time.localtime(self.begin))
+ print time.strftime("%c", time.localtime(self.end))