Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5b404d6

Browse files
gh-94300: Update datetime.strptime documentation (#95318)
The new wording better reflects the cases where `datetime.strptime` differs from` time.strptime`.---------Co-authored-by: Paul Ganssle <git@m.ganssle.io>
1 parented948e0 commit5b404d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Doc/library/datetime.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ Other constructors, all class methods:
10431043
Return a:class:`.datetime` corresponding to *date_string*, parsed according to
10441044
*format*.
10451045

1046-
This is equivalent to::
1046+
If *format* does not contain microseconds or timezone information, this is equivalent to::
10471047

10481048
datetime(*(time.strptime(date_string, format)[0:6]))
10491049

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp