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: CHANGELOG.md
+47-2Lines changed: 47 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,50 @@
1
1
# Change Log
2
2
3
+
## 0.5.2
4
+
- repr for Undate, UndateInterval, and UnDelta now produce fully-qualified, constructor-style strings with deterministic field ordering.
5
+
- Added Undate.unknown_year property and is_unknown() method to check for fully-unknown year/month/day.
6
+
- bugfix: comparisons (eq, gt, lt) and contains (in) now return False when year is unknown
7
+
- bugfix: month durations for non-Gregorian dates now returns an integer when month length is known
8
+
9
+
## 0.5.1
10
+
- Correct license identifier in CITATION.cff so it is valid
11
+
12
+
## 0.5
13
+
14
+
- New `UnDelta` and `UnInt` classes for uncertain durations
15
+
-`Undate.duration` now returns either a `Timedelta` or an `UnDelta` if the duration is ambiguous
16
+
- New properties `possible_years` and `representative_years` on `Undate` class, used for calculating durations for uncertain years and months
17
+
- New `weekday` method on class `undate.date.Date`
18
+
- Calendar converter improvements:
19
+
- Calendar converter classes can optional provide minimum and maximum years for uncertain dates
20
+
- New calendar methods `days_in_year` and `representative_years`
21
+
- Hebrew date parser now allows for week days, along with additional month variants
22
+
- Preliminary Seleucide calendar converter class, based on Hebrew calendar with a year offset
23
+
- New method `as_calendar` on `Undate` class, to set calendar without doing any conversion
24
+
- Readme examples have been improved and extended
25
+
- New example notebook testing Hebrew, Islamic, and Seleucid date parsing and conversion with Princeton Geniza Project data
26
+
- bugfix: duration for uncertain years previously returned the duration from earliest to latest possible dates in range; now returns an `UnDelta` with the possible durations for the possible years in the given calendar
27
+
28
+
## 0.4
29
+
30
+
- Undate is now Calendar aware / Calendar explicit; default is Gregorian
31
+
- New `BaseCalendarConverter` class, with additional methods required for calendar converters
32
+
-`HebrewDateConverter`: Parsing and calendar conversion for Hebrew/Anno Mundi
33
+
-`IslamicDateConverter`: Parsing and calendar conversion for Islamic/Hijri
34
+
-`GregorianDateConverter`: basic Gregorian calendar logic
35
+
-`undate.Calendar` class to track `Undate` object calendar, and match with calendar converters
36
+
- BaseDateConverter class now includes nested/descendant subclasses when looking
37
+
for available converters
38
+
-`Undate.to_undate` method to convert supported date objects to `Undate` (`datetime.date`, `datetime.datetime`, and internal `undate.date.Date` class)
39
+
-`UndateInterval` improvements
40
+
- Can be initialized with `Undate` objects or any type supported by `Undate.to_undate`
41
+
- New method for contains (`in`), to determine if another interval or date is contained by an interval
42
+
- New method `intersection` to determine the overlap between two `UndateInterval` objects
43
+
- EDTF parser : fixed day parsing for some unsupported cases
44
+
- Dropped support for Python 3.9
45
+
- Reorganized examples folder to avoid unnecessary nesting
46
+
- ISMI data has been updated from older JSON data to examples in RDF (turtle)
47
+
3
48
## 0.3.1
4
49
5
50
Update readthedocs config for current installation
@@ -14,7 +59,7 @@ Update readthedocs config for current installation
14
59
- Support 5+ digit years with leading Y (thanks to numpy.datetime64)
15
60
- Jupyter notebook demonstrating / validating EDTF support
16
61
- Full support for Level 0 Date and Time Interval (no Date and Time support)
17
-
- Level 1:
62
+
- Level 1:
18
63
- Letter-prefixed calendar year
19
64
- Unspecified digit from the right
20
65
- Partial support for extended interval
@@ -28,7 +73,7 @@ Update readthedocs config for current installation
28
73
29
74
### numpy impact
30
75
31
-
Performance differences seem to be negligible, but it does increase payload size. The virtualenv for installing version 0.2 was 14MB; when installing the newer version with numpy, the virtualenv is 46MB (the numpy folder in site packages is 31MB on its own).
76
+
Performance differences seem to be negligible, but it does increase payload size. The virtualenv for installing version 0.2 was 14MB; when installing the newer version with numpy, the virtualenv is 46MB (the numpy folder in site packages is 31MB on its own).
0 commit comments