> On Apr 23, 2016, at 11:44 PM, Glen Barnes <[log in to unmask]> wrote:
>
> Before we go and write one has anybody published an EDTF -> Human readable library. For some
> reason I thought SFMOMA had but I can't seem to find it. We're basically wanting to convert things like
> 196x to "1960's" and 1910~ to "c1910", etc. We're looking at either doing it in the backend (Ruby) or in
> the front end (Javascript).
>
> Any pointers to implementations appreciated.
The spec has been moving around a bit, so I don’t know of any parser implementation (certainly not mine) that has caught up.
Once parsed in your language of choice, it should be straightforward to emit a human-friendly version.
—Richard
|