globalgov / messydates

R package for Extended Date/Time Format (EDTF)
https://globalgov.github.io/messydates
Other
15 stars 1 forks source link

Double unspecified components not compressed/contracted sufficiently #72

Closed jhollway closed 7 months ago

jhollway commented 1 year ago

A replicable example:

as_messydate("1908-??-??") should return "1908" not "1908-XX"

henriquesposito commented 1 year ago

This issue has been fixed.

However, in the process, I also noticed that we do not handle unspecified components well if dates are not correctly ordered (i.e. "XX-1998", "XXXX-01-01", "01-01-XXXX", "XX-10-1998", "XX-XX-1998"). I will try and fix this.