Return ctime() style string.
(self)
| 1101 | |
| 1102 | |
| 1103 | def ctime(self): |
| 1104 | "Return ctime() style string." |
| 1105 | weekday = self.toordinal() % 7 or 7 |
| 1106 | return "%s %s %2d 00:00:00 %04d" % ( |
| 1107 | _DAYNAMES[weekday], |
| 1108 | _MONTHNAMES[self._month], |
| 1109 | self._day, self._year) |
| 1110 | |
| 1111 | def strftime(self, format): |
| 1112 | """ |