10000 bpo-41260: C impl of datetime.date.strftime() takes different keyword arg by ZackerySpytz · Pull Request #21712 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-41260: C impl of datetime.date.strftime() takes different keyword arg #21712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' into bpo-41260-datetime-strftime-param
  • Loading branch information
iritkatriel authored Nov 24, 2022
commit 7617f86ffd6c6cde970596e4d0111a10f7118553
6 changes: 5 additions & 1 deletion Lib/datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1033,7 +1033,11 @@ def ctime(self):
self._day, self._year)

def strftime(self, format):
"Format using strftime()."
"""
Format using strftime().

Example: "%d/%m/%Y, %H:%M:%S"
"""
return _wrap_strftime(self, format, self.timetuple())

def __format__(self, fmt):
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0