8000 gh-97517: Improve docstrings for strptime and strftime methods in datetime module by MaddyGuthridge · Pull Request #31761 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-97517: Improve docstrings for strptime and strftime methods in datetime module #31761

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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
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
Clean up docs for ctime
  • Loading branch information
MaddyGuthridge committed Sep 25, 2022
commit 6edf338587b9fb25a47d3b1b041c15b2eaf5b95a
6 changes: 1 addition & 5 deletions Lib/datetime.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,11 +1025,7 @@ def __repr__(self):


def ctime(self):
"""Return ctime() style string.

>>> date(2001, 10, 5).ctime()
'Fri Oct 5 00:00:00 2001'
"""
"""Return ctime() style string, such as 'Fri Oct 5 00:00:00 2001'"""
weekday = self.toordinal() % 7 or 7
return "%s %s %2d 00:00:00 %04d" % (
_DAYNAMES[weekday],
Expand Down
0