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:
commit
4331faaca1
@ -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
|
Loading…
x
Reference in New Issue
Block a user