You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'{} time_stamp needs to be in full ISO format'.format(
time_stamp,
)
)
But this is harder to understand, and they do not really check for invalid data (such as February 31). We probably should be using a real date/time parser. From this StackOverflow question, one way seems to be using datetime library:
We're using regular expressions to validate date and time strings:
datamodel/sdxdatamodel/validation/connectionvalidator.py
Lines 12 to 14 in 3a83c58
datamodel/sdxdatamodel/validation/connectionvalidator.py
Line 107 in 3a83c58
datamodel/sdxdatamodel/validation/topologyvalidator.py
Line 19 in 3a83c58
datamodel/sdxdatamodel/validation/topologyvalidator.py
Lines 111 to 123 in 3a83c58
But this is harder to understand, and they do not really check for invalid data (such as February 31). We probably should be using a real date/time parser. From this StackOverflow question, one way seems to be using datetime library:
However datetime's own documentation suggests using isoparse from third-party dateutil library.
The text was updated successfully, but these errors were encountered: