continuing implementing;

This commit is contained in:
StevanFreeborn
2022-04-18 15:07:31 -05:00
parent e7e0e5f0ad
commit b723c55f79
4 changed files with 114 additions and 29 deletions
+12
View File
@@ -0,0 +1,12 @@
from datetime import datetime
def parseDate(date: str):
if date==None:
return None
for format in ["%Y-%m-%dT%H:%M:%S.%fZ","%Y-%m-%dT%H:%M:%SZ"]:
try:
return datetime.strptime(date, format)
except ValueError:
pass