emacs-bug-tracker
[Top][All Lists]
Advanced

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

bug#39347: closed (28.0.50; iso8601-parse can't handle all legal date va


From: GNU bug Tracking System
Subject: bug#39347: closed (28.0.50; iso8601-parse can't handle all legal date values?)
Date: Thu, 30 Jan 2020 03:33:02 +0000

Your message dated Wed, 29 Jan 2020 19:32:10 -0800
with message-id <address@hidden>
and subject line Re: bug#39347: 28.0.50; iso8601-parse can't handle all legal 
date values?
has caused the debbugs.gnu.org bug report #39347,
regarding 28.0.50; iso8601-parse can't handle all legal date values?
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
39347: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39347
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 28.0.50; iso8601-parse can't handle all legal date values? Date: Wed, 29 Jan 2020 13:00:43 -0800
Hi!

I'm writing a small library for parsing vcards, and would like to use
the new iso8601 library, when available, for parsing date properties.

I'm testing out `iso9601-parse' with the example values from the vcard
RFC, and am getting errors from the example date value "---12", from
https://tools.ietf.org/html/rfc6350#section-4.3.1.

My understanding is that "---12" as a date should parse to:

(nil nil nil 12 nil nil nil -1 nil)

Ie, "the twelfth" (though the twelfth of what, we don't know). "----12"
also raises an error. The value "--0412" parses correctly to "April
twelfth".

Is this a bug that can be fixed, or a date value that isn't supported?

Thanks,
Eric



--- End Message ---
--- Begin Message --- Subject: Re: bug#39347: 28.0.50; iso8601-parse can't handle all legal date values? Date: Wed, 29 Jan 2020 19:32:10 -0800 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)
Lars Ingebrigtsen <address@hidden> writes:

> Lars Ingebrigtsen <address@hidden> writes:
>
>> Hm...  I didn't add support for "---12T14" (that is, 14:00 on the
>> twelfth)...  I didn't peruse the 2000 version of the standard
>> sufficiently to see whether that was supposed to be valid or not.  My
>> guess is that it was.  :-/
>
> OK, I couldn't live with that, so I've now made this work:
>
> (iso8601-parse "---12T14")
> => (0 0 14 12 nil nil nil -1 nil)
>
> This'll be useful for exactly nobody.  :-)

I already count as one!

Closing the bug report now -- thanks.


--- End Message ---

reply via email to

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