Make docs happy
This commit is contained in:
parent
169afbe2c0
commit
4252da7a69
1 changed files with 7 additions and 3 deletions
|
|
@ -660,7 +660,10 @@ class date:
|
|||
|
||||
@classmethod
|
||||
def fromisoformat(cls, date_string):
|
||||
"""Return a date object constructed from an ISO date format."""
|
||||
"""Return a date object constructed from an ISO date format.
|
||||
Valid format is YYYY-MM-DD
|
||||
|
||||
"""
|
||||
match = _re.match(
|
||||
r"([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])", date_string
|
||||
)
|
||||
|
|
@ -1220,8 +1223,9 @@ class datetime(date):
|
|||
|
||||
@classmethod
|
||||
def fromisoformat(cls, date_string, tz=None):
|
||||
"""Return a date object constructed from an ISO date format.
|
||||
YYYY-MM-DD[*HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]]]
|
||||
"""Return a datetime object constructed from an ISO date format.
|
||||
Valid format is YYYY-MM-DD[*HH[:MM[:SS[.fff[fff]]]][+HH:MM[:SS[.ffffff]]]]
|
||||
|
||||
"""
|
||||
match = _re.match(
|
||||
(
|
||||
|
|
|
|||
Loading…
Reference in a new issue