Skip to content

Commit 210b649

Browse files
committed
Update comments in _strptime module
1 parent 0bbdb4e commit 210b649

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Lib/_strptime.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
FUNCTIONS:
99
_getlang -- Figure out what language is being used for the locale
10-
strptime -- Calculates the time struct represented by the passed-in string
10+
_strptime -- Calculates the time struct represented by the passed-in string
1111
1212
"""
1313
import os
@@ -518,9 +518,10 @@ def _calc_julian_from_U_or_W(year, week_of_year, day_of_week, week_starts_Mon):
518518

519519

520520
def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
521-
"""Return a 2-tuple consisting of a time struct and an int containing
522-
the number of microseconds based on the input string and the
523-
format string."""
521+
"""Return a 3-tuple consisting of a time struct, an int containing
522+
the number of microseconds and an int containing
523+
a mictoseconds part of the GMT offset based on the input string
524+
and the format string."""
524525

525526
for index, arg in enumerate([data_string, format]):
526527
if not isinstance(arg, str):

0 commit comments

Comments
 (0)