diff options
author | Eric Smith <eric@trueblade.com> | 2007-09-11 18:06:02 +0000 |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2007-09-11 18:06:02 +0000 |
commit | 1ba3114fdb5adb5e6852c85e1d3caccba3395471 (patch) | |
tree | 0341bc0a923b50960ecf14302132eea3b30142a7 /Python/errors.c | |
parent | 54d6874e48cc9aa57c141b59868f6a99a87dd1b6 (diff) | |
download | cpython-git-1ba3114fdb5adb5e6852c85e1d3caccba3395471.tar.gz |
Added __format__ method to datetime.datetime, datetime.date, and datetime.time.
If format_spec is empty, __format__ calls str(self), else it calls
self.strftime(format_spec).
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions