[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21229: 24.5; parse-time-string ignore PM/AM
From: |
Tino Calancha |
Subject: |
bug#21229: 24.5; parse-time-string ignore PM/AM |
Date: |
Wed, 12 Aug 2015 14:45:36 +0900 (JST) |
User-agent: |
Alpine 2.20 (LRH 67 2015-01-07) |
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
- bug#21229: 24.5; parse-time-string ignore PM/AM, (continued)
- bug#21229: 24.5; parse-time-string ignore PM/AM, Tino Calancha, 2015/08/10
- bug#21229: 24.5; parse-time-string ignore PM/AM, Eli Zaretskii, 2015/08/10
- bug#21229: 24.5; parse-time-string ignore PM/AM, Tino Calancha, 2015/08/10
- bug#21229: 24.5; parse-time-string ignore PM/AM, Nicolas Richard, 2015/08/11
- bug#21229: 24.5; parse-time-string ignore PM/AM, Tino Calancha, 2015/08/11
- bug#21229: 24.5; parse-time-string ignore PM/AM, Andreas Schwab, 2015/08/11
- bug#21229: 24.5; parse-time-string ignore PM/AM, Tino Calancha, 2015/08/11
- bug#21229: 24.5; parse-time-string ignore PM/AM, Andreas Schwab, 2015/08/11
- bug#21229: 24.5; parse-time-string ignore PM/AM, Tino Calancha, 2015/08/11
- bug#21229: 24.5; parse-time-string ignore PM/AM, Stefan Monnier, 2015/08/11
- bug#21229: 24.5; parse-time-string ignore PM/AM,
Tino Calancha <=
- bug#21229: 24.5; parse-time-string ignore PM/AM, Eli Zaretskii, 2015/08/12
- bug#21229: 24.5; parse-time-string ignore PM/AM, Tino Calancha, 2015/08/12
- bug#21229: 24.5; parse-time-string ignore PM/AM, Nicolas Richard, 2015/08/12