File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 13
13
14
14
15
15
class EDTFDateConverter (BaseDateConverter ):
16
+ """
17
+ Converter for Extended Date/Time Format (EDTF).
18
+
19
+ Supports parsing and serializing dates and date ranges in EDTF format.
20
+ Does not support all of EDTF, and only supports dates and not times.
21
+ """
22
+
16
23
#: converter name: EDTF
17
24
name : str = "EDTF"
18
25
Original file line number Diff line number Diff line change 12
12
class Undate :
13
13
"""object for representing uncertain, fuzzy or partially unknown dates"""
14
14
15
- DEFAULT_FORMAT : str = "ISO8601"
15
+ DEFAULT_CONVERTER : str = "ISO8601"
16
16
17
17
#: symbol for unknown digits within a date value
18
18
MISSING_DIGIT : str = "X"
@@ -138,7 +138,7 @@ def __init__(
138
138
if converter is None :
139
139
# import all subclass definitions; initialize the default
140
140
converter_cls = BaseDateConverter .available_converters ()[
141
- self .DEFAULT_FORMAT
141
+ self .DEFAULT_CONVERTER
142
142
]
143
143
converter = converter_cls ()
144
144
self .converter = converter
You can’t perform that action at this time.
0 commit comments