GNU bug report logs -
#21229
24.5; parse-time-string ignore PM/AM
Previous Next
Reported by: Tino Calancha <f92capac <at> gmail.com>
Date: Mon, 10 Aug 2015 15:35:02 UTC
Severity: minor
Tags: notabug
Found in version 24.5
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #41 received at 21229 <at> debbugs.gnu.org (full text, mbox):
At some point one decision (order to support) should be taken
because MM DD need to be identified:
07-11, november 7th?
Maybe July 11th?
My propose is support
date +%F (%Y-%m-%d already in vanilla emacs)
and
date +%D (%m/%d/%y)
It is straightforward to extend my previous patch adding one rule to
support:
%m/%d/%Y (%Y instead of %y)
I think that cover enough date formats.
I understand is hard to remember if %m/%d/%y or %d/%m/%y
is supported: the documentation string of parse-time-string should
be updated to clearly point out what input strings are valid.
Tino
On Tue, 11 Aug 2015, Stefan Monnier wrote:
>>> It should be possible to add support for:
>>> "%m/%d/%y"
>> What about "%d/%m/%y"?
>
> Indeed. I already bumped into such problems with parse-time-string
> where it seemed to return a completely bogus result until I realized
> that it picked a different ordering from the one I had.
>
> The problem exists for "a-b-c" as well, tho I can't remember ever seeing
> "YYYY-DD-MM" nor "MM-DD-YYYY" so if the year is spelled out as 4 digits,
> the "a-b-c" format is somewhat reliable (at least within my part of the
> world).
>
>
> Stefan
>
This bug report was last modified 4 years and 276 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.