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
Copy file name to clipboardExpand all lines: src/univers/datetime.py
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4,16 +4,20 @@
4
4
# Visit https://aboutcode.org and https://github.com/aboutcode-org/univers for support and download.
5
5
6
6
importre
7
+
7
8
fromdateutil.parserimportisoparse
8
9
10
+
9
11
classDatetimeVersion:
10
12
"""
11
13
datetime version.
12
14
13
15
The timestamp must be RFC3339-compliant, i.e., a subset of ISO8601, where the date AND time are always specified. Therefore, we can use dateutil's ISO-parser but have to check for compliance with the RFC format first via a regex.
0 commit comments