Skip to content
Merged
Changes from all commits
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
9 changes: 5 additions & 4 deletions Lib/_strptime.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

FUNCTIONS:
_getlang -- Figure out what language is being used for the locale
strptime -- Calculates the time struct represented by the passed-in string
_strptime -- Calculates the time struct represented by the passed-in string

"""
import os
Expand Down Expand Up @@ -518,9 +518,10 @@ def _calc_julian_from_U_or_W(year, week_of_year, day_of_week, week_starts_Mon):


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

for index, arg in enumerate([data_string, format]):
if not isinstance(arg, str):
Expand Down
Loading