(self, fmt)
| 1104 | return _wrap_strftime(self, format, self.timetuple()) |
| 1105 | |
| 1106 | def __format__(self, fmt): |
| 1107 | if not isinstance(fmt, str): |
| 1108 | raise TypeError("must be str, not %s" % type(fmt).__name__) |
| 1109 | if len(fmt) != 0: |
| 1110 | return self.strftime(fmt) |
| 1111 | return str(self) |
| 1112 | |
| 1113 | def isoformat(self): |
| 1114 | """Return the date formatted according to ISO. |
nothing calls this directly
no test coverage detected