[+] Add precondition
This commit is contained in:
@@ -148,6 +148,7 @@ def parse_date(iso: str) -> datetime:
|
|||||||
|
|
||||||
Preconditions:
|
Preconditions:
|
||||||
- iso is the output of datetime.isoformat() (In a format like "2021-10-20T23:50:14")
|
- iso is the output of datetime.isoformat() (In a format like "2021-10-20T23:50:14")
|
||||||
|
- iso is a valid date (this function does not check for the validity of the input)
|
||||||
|
|
||||||
:param iso: Input date
|
:param iso: Input date
|
||||||
:return: Datetime object
|
:return: Datetime object
|
||||||
|
|||||||
Reference in New Issue
Block a user