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

[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: Tue, 11 Aug 2015 20:47:19 +0900 (JST)
User-agent: Alpine 2.20 (LRH 67 2015-01-07)


Exactly, there are a lot, its always a mess.

I attached my tentative idea to support
(format-time-string "%p")
(format-time-string "%D")

I didnt tested so much. Im sure you can find a better way.


(parse-time-string "08/11/15 08:37:48 PM")
(48 37 20 11 8 2015 nil nil nil)
(parse-time-string "08/11/15 08:37:48 AM")
(48 37 8 11 8 2015 nil nil nil)

Tino


On Tue, 11 Aug 2015, Andreas Schwab wrote:

Tino Calancha <f92capac@gmail.com> writes:

"%m/%d/%y" is better option because is seems more
standard:

The nice things about standards is that there are so many to chose from.

Andreas.

--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Attachment: parse-time_%p_%D.patch
Description: Text document


reply via email to

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