(self, fmt)
| 1638 | return _wrap_strftime(self, format, timetuple) |
| 1639 | |
| 1640 | def __format__(self, fmt): |
| 1641 | if not isinstance(fmt, str): |
| 1642 | raise TypeError("must be str, not %s" % type(fmt).__name__) |
| 1643 | if len(fmt) != 0: |
| 1644 | return self.strftime(fmt) |
| 1645 | return str(self) |
| 1646 | |
| 1647 | # Timezone functions |
| 1648 |
nothing calls this directly
no test coverage detected