Re: Re-writing Genealogy::Gedcom::Date
[email protected] (Ron Savage) Sat, 07 Nov 2015 10:22:01 +1100
| Newsgroups | perl.gedcom |
|---|---|
| Message-ID | <[email protected]> |
Hi John Thanx for your informative email. Luckily my code is not intended to do any calculations. It simply accepts, parses and returns date strings - which must be provided in a given format. I did read various parts from your references and understand they are complex for good reason. The whole topic is a marvellous example of a can of worms. Regarding writing new code: As for ISO 8601, I could buy a copy of the doc for $AUD235, or start with a similar standard, RFC 3339 for free. As for the BNF on p 12 of RFC 3339, it resembles the BNF for "RFC4514: Lightweight Directory Access Protocol (LDAP): String Representation of Distinguished Names." [1] for which I have already written a Marpa::R2-based parser [2]. So, definitely doable, but fortuitously not needed at this point in time. [1] https://www.ietf.org/rfc/rfc4514.txt [2] https://metacpan.org/pod/X500::DN::Marpa -- Ron Savage - savage.net.au