bdarcus / csln

Reimagining CSL
Mozilla Public License 2.0
12 stars 0 forks source link

edtf date-time formatting #71

Closed bdarcus closed 1 year ago

bdarcus commented 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.

Maybe there's a better way, but it'll do for now.

But this currently ONLY handles edtf:Date, so still work to do.