Releases: sul-dlss/parse_date
Releases · sul-dlss/parse_date
v0.4.2
v0.4.1
v0.4.0
v0.3.4
parse yyy-yy date string
- fix latest_year to correctly parse values such as "950-60" (i.e. 960)
parse yyy-yyyy date string
- fix earliest_year to correctly parse values such as "996–1021 CE" (i.e. 966)
parse year to year date string
- fix latest year to correctly parse values such as "1500? to 1582" (i.e. 1582)
v0.3.3
Fix bug parsing negative latest year
- fix
latest_year
with values such as "-0100", which were parsing out to 100 instead of -100
Treat long hyphen char as regular hyphen
1230—1239
has a long hyphen char (as opposed to1230-1239
); treat long hyphen as hyphen for parsing out latest year.
v0.3.2
v0.3.1
v0.3.0
Add methods:
(documented in README and in specs)
ParseDate.parse_range
ParseDate.range_array
ParseDate.year_range_valid?
Parse more patterns and distinguish between earliest and latest years:
between year1 and year2
(including BC)year1 or year2
yyyy-yyyy
yyyy-yy
for latest year (e.g. 1975-79)yyuu-yyuu
for latest yearnth century BC
for latest yearnth - qth century
for earliest and latest year (including BC)