Closed bdarcus closed 1 year ago
Like my fifth attempt at this ....
I've decided to add my own methods to parse edtf date-times, and also convert them to the sort of input formats needed by chrono or icu.
The first commit here adds those.
The parsing method returns an Edtf::Date regardless of whether it's valid, but if it's not, it's a dummy date with zero year.
Edtf::Date
Maybe there's a better way, but it'll do for now.
But this currently ONLY handles edtf:Date, so still work to do.
edtf:Date
Like my fifth attempt at this ....
I've decided to add my own methods to parse edtf date-times, and also convert them to the sort of input formats needed by chrono or icu.
The first commit here adds those.
The parsing method returns an
Edtf::Date
regardless of whether it's valid, but if it's not, it's a dummy date with zero year.Maybe there's a better way, but it'll do for now.
But this currently ONLY handles
edtf:Date
, so still work to do.