2
0
mirror of https://opendev.org/x/pyghmi synced 2025-01-28 11:57:34 +00:00

Merge "Add month/day/year to parse"

This commit is contained in:
Zuul 2019-05-28 14:32:46 +00:00 committed by Gerrit Code Review
commit 4331faaca1

View File

@ -56,4 +56,8 @@ def parse_time(timeval):
return datetime.strptime(timeval, '%Y-%m-%d')
except ValueError:
pass
try:
return datetime.strptime(timeval, '%m/%d/%Y')
except ValueError:
pass
return None