(self, fmt)
| 1034 | return _wrap_strftime(self, fmt, self.timetuple()) |
| 1035 | |
| 1036 | def __format__(self, fmt): |
| 1037 | if not isinstance(fmt, str): |
| 1038 | raise TypeError("must be str, not %s" % type(fmt).__name__) |
| 1039 | if len(fmt) != 0: |
| 1040 | return self.strftime(fmt) |
| 1041 | return str(self) |
| 1042 | |
| 1043 | def isoformat(self): |
| 1044 | """Return the date formatted according to ISO. |