Skip to content
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.