emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Allow unspecified dates in iso8601-valid-p?


From: Joost Kremers
Subject: Re: Allow unspecified dates in iso8601-valid-p?
Date: Mon, 04 Jul 2022 18:21:15 +0200
User-agent: mu4e 1.8.3; emacs 28.1.90

On Mon, Jul 04 2022, Bob Rogers wrote:
> Parsing such dates would seem to require a fair amount of work, as the
> design of iso8601.el does not consider partially-specified date values.
> What is more, the return value is in terms of decoded time objects,
> which can only describe them as either present or absent.

Ok, I see your point.

>    But if you only want to test ISO 8601 compliance, then ISTM it would
> be better (and much easier) to write a new and completely separate
> `iso8601-compliant-p` predicate for that purpose, since the charter of
> `iso8601-valid-p` is to tell whether iso8601.el can parse something.

The question then becomes if it's useful to write such a function, or would it
make more sense to account for unspecified dates in the relevant part of
bibtex.el.



-- 
Joost Kremers
Life has its moments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]