[+] Add precondition

This commit is contained in:
Hykilpikonna
2021-11-24 17:25:04 -05:00
parent 5f07979140
commit 153e9e4ed6
+1
View File
@@ -148,6 +148,7 @@ def parse_date(iso: str) -> datetime:
Preconditions:
- 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
:return: Datetime object