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
@@ -140,7 +140,7 @@ An `UndateInterval` is a date range between two `Undate` objects. Intervals can
140
140
```
141
141
142
142
You can initialize `Undate`or`UndateInterval` objects by parsing a date string with a specific converter, and you can also output an `Undate`objectin those formats.
143
-
Available converters are "ISO8601"and"EDTF"(but only)
143
+
Currently available converters are "ISO8601"and"EDTF"and supported calendars.
144
144
145
145
```python
146
146
>>>from undate import Undate
@@ -156,7 +156,34 @@ Available converters are "ISO8601" and "EDTF" (but only)
156
156
<UndateInterval 1800/1900>
157
157
```
158
158
159
-
For more examples, refer to the [example notebooks](https://github.com/dh-tech/undate-python/tree/main/examples/notebooks/) included in this repository.
159
+
### Calendars
160
+
161
+
All `Undate` objects are calendar aware, and date converters include support for parsing and working with dates from other calendars. The Gregorian calendar is used by default; currently `undate` supports the Islamic Hijri calendar and the Hebrew Anno Mundi calendar based on calendar conversion logic implemented in the [convertdate](https://convertdate.readthedocs.io/en/latest/) package.
162
+
163
+
Dates are stored with the year, month, day and appropriate precision for the original calendar; internally, earliest and latest dates are calculated in Gregorian / Proleptic Gregorian calendar for standardized comparison across dates from different calendars.
For more examples, refer to the code notebooks included in the [examples](https://github.com/dh-tech/undate-python/tree/main/examples/) in this repository.
Example data and projects with use cases for uncertain date logic and
4
-
example code notebooks using undate.
5
-
6
-
-[use cases](use-cases) - examples from projects or specific data with use cases for undate
7
-
-[notebooks](notebooks) - code notebooks showing how undate can be used on a specific dataset or for a specific problem
3
+
This folder contains code notebooks demonstrating how `undate` can be
4
+
used on a specific dataset, problem, or format, as well as example
5
+
data from projects with use cases for uncertain date logic.
6
+
7
+
## Contents
8
+
9
+
-[EDTF support](edtf-support.ipynb) - demonstrate and validate supported portions of the Extended Date Time Format (EDTF) specification (jupyter notebook)
10
+
-[ISMI](ismi) - Sample data from the Islamic Scientific Manuscript Initiative project
11
+
-[Shakespeare and Company Project](shakespeare-and-company-project) - data, description of partial date implementation, and example notebook
12
+
- Events data from version 1.2 of Shakespeare and Company Project datasets
13
+
-[Partial date duration logic](shakespeare-and-company-project/shxco_partial_date_durations.ipynb) - compare `undate` partial date range duration logic with a previous implementation in the _Shakespeare and Company Project_ (jupyter notebook)
0 commit comments