[Issue 12886] std.datetime cannot parse HTTP date

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 9 19:18:36 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=12886

Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com

--- Comment #1 from Jonathan M Davis <jmdavisProg at gmx.com> ---
Hmmm. I don't know. Sure, the RFC 5322 date format is used in a number of
internet-related specs, but the way it's parsed is rather specific to those
specs. I'm not convinced that Phobos is the right place for it.

I do have an implementation of this that's in a library that I've been working
on (which implements RFC 5322) that I intend to post within the next couple of
months (how soon will depend on how much time I have to work on it), but I am
inclined to think that a 3rd party library like that is a better place for it,
particularly given the insane amount of muck involved with parsing that format
correctly - muck which is specific to RFC 5322 and its related specs. And I
certainly wouldn't want to encourage the use of the RFC 5322 format outside of
the specs that require it, since it's really a horrible format (much as it's
slightly better than what was in the obsoleted RFC 822 - part of the problem
being that you still have to parse the really bad stuff from RFC 822 even
though it's illegal to create many such strings now with RFC 5322).

--


More information about the Digitalmars-d-bugs mailing list