From unknown Tue Jun 24 20:51:02 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#21229 <21229@debbugs.gnu.org> To: bug#21229 <21229@debbugs.gnu.org> Subject: Status: 24.5; parse-time-string ignore PM/AM Reply-To: bug#21229 <21229@debbugs.gnu.org> Date: Wed, 25 Jun 2025 03:51:02 +0000 retitle 21229 24.5; parse-time-string ignore PM/AM reassign 21229 emacs submitter 21229 Tino Calancha severity 21229 minor tag 21229 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 11:34:36 2015 Received: (at submit) by debbugs.gnu.org; 10 Aug 2015 15:34:36 +0000 Received: from localhost ([127.0.0.1]:52306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOp5v-00011z-CA for submit@debbugs.gnu.org; Mon, 10 Aug 2015 11:34:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49749) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOiGA-00069b-SQ for submit@debbugs.gnu.org; Mon, 10 Aug 2015 04:16:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOiG9-0007Eb-0X for submit@debbugs.gnu.org; Mon, 10 Aug 2015 04:16:42 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOiG8-0007EX-Tj for submit@debbugs.gnu.org; Mon, 10 Aug 2015 04:16:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOiG7-0004iY-QB for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 04:16:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOiG3-00077z-OR for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 04:16:39 -0400 Received: from calancha-ilc.kek.jp ([130.87.234.234]:57103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOiG3-00076i-4U for bug-gnu-emacs@gnu.org; Mon, 10 Aug 2015 04:16:35 -0400 Received: from calancha-ilc.kek.jp (localhost.localdomain [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 1D567727B for ; Mon, 10 Aug 2015 17:19:38 +0900 (JST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Mon, 10 Aug 2015 17:19:38 +0900 (JST) Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id DE19972FE; Mon, 10 Aug 2015 17:19:37 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id C6D7C727B for ; Mon, 10 Aug 2015 17:19:37 +0900 (JST) Date: Mon, 10 Aug 2015 17:19:37 +0900 (JST) From: Tino Calancha X-X-Sender: calancha@calancha-ilc.kek.jp To: bug-gnu-emacs@gnu.org Subject: 24.5; parse-time-string ignore PM/AM Message-ID: User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BitDefender-Scanner: Mail not scanned due to license constraints X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 10 Aug 2015 11:34:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) In the *scratch* buffer i evaluated following expressions: (format-time-string "%c" (current-time)) "Mon 10 Aug 2015 03:11:35 PM JST" (apply 'encode-time(parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST")) (21959 38871) (apply 'encode-time(parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST")) (21959 38871) (apply 'encode-time(parse-time-string "Mon 10 Aug 2015 15:11:35 JST")) (21960 16535) (apply 'encode-time(parse-time-string "Mon 10 Aug 2015 03:11:35 JST")) (21959 38871) In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.23) of 2015-06-07 on calancha-ilc.kek.jp System Description: Scientific Linux release 6.6 (Carbon) Configured using: `configure --with-gif=no' Important settings: value of $LC_ALL: value of $LC_COLLATE: en_US.UTF-8 value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: en_US.UTF-8 value of $LC_MONETARY: en_US.UTF-8 value of $LC_NUMERIC: en_US.UTF-8 value of $LC_TIME: en_US.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils parse-time xterm time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 76628 4219) (symbols 48 17605 0) (miscs 40 39 188) (strings 32 9137 4875) (string-bytes 1 250937) (vectors 16 7162) (vector-slots 8 342020 32768) (floats 8 65 237) (intervals 56 199 4) (buffers 960 11) (heap 1024 10949 2008)) From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 13:29:54 2015 Received: (at 21229) by debbugs.gnu.org; 10 Aug 2015 17:29:54 +0000 Received: from localhost ([127.0.0.1]:52381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOqtV-0005ED-N7 for submit@debbugs.gnu.org; Mon, 10 Aug 2015 13:29:54 -0400 Received: from mtaout27.012.net.il ([80.179.55.183]:33640) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOqtT-0005E4-GH for 21229@debbugs.gnu.org; Mon, 10 Aug 2015 13:29:52 -0400 Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NSV00200N3U2S00@mtaout27.012.net.il> for 21229@debbugs.gnu.org; Mon, 10 Aug 2015 20:27:05 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSV00MBMN556940@mtaout27.012.net.il>; Mon, 10 Aug 2015 20:27:05 +0300 (IDT) Date: Mon, 10 Aug 2015 20:29:38 +0300 From: Eli Zaretskii Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-reply-to: X-012-Sender: halo1@inter.net.il To: Tino Calancha Message-id: <83h9o7oxvh.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: 21229@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Mon, 10 Aug 2015 17:19:37 +0900 (JST) > From: Tino Calancha > > In the *scratch* buffer i evaluated following expressions: > > (format-time-string "%c" (current-time)) > "Mon 10 Aug 2015 03:11:35 PM JST" > > (apply 'encode-time(parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST")) > (21959 38871) > (apply 'encode-time(parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST")) > (21959 38871) What do the following expressions produce? (parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST") (parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST") From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 13:32:54 2015 Received: (at 21229) by debbugs.gnu.org; 10 Aug 2015 17:32:54 +0000 Received: from localhost ([127.0.0.1]:52385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOqwP-0005Jn-LU for submit@debbugs.gnu.org; Mon, 10 Aug 2015 13:32:53 -0400 Received: from calancha-ilc.kek.jp ([130.87.234.234]:58395) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOqwN-0005Jc-7H for 21229@debbugs.gnu.org; Mon, 10 Aug 2015 13:32:52 -0400 Received: from calancha-ilc.kek.jp (localhost.localdomain [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 0813F7361; Tue, 11 Aug 2015 02:35:53 +0900 (JST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Tue, 11 Aug 2015 02:35:53 +0900 (JST) Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id C260D9B96; Tue, 11 Aug 2015 02:35:52 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id AE9737361; Tue, 11 Aug 2015 02:35:52 +0900 (JST) Date: Tue, 11 Aug 2015 02:35:52 +0900 (JST) From: Tino Calancha X-X-Sender: calancha@calancha-ilc.kek.jp To: Eli Zaretskii Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-Reply-To: <83h9o7oxvh.fsf@gnu.org> Message-ID: References: <83h9o7oxvh.fsf@gnu.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BitDefender-Scanner: Mail not scanned due to license constraints X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: Tino Calancha , 21229@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) |#> emacs -Q (parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST") (35 11 3 10 8 2015 1 nil nil) (parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST") (35 11 3 10 8 2015 1 nil nil) On Mon, 10 Aug 2015, Eli Zaretskii wrote: >> Date: Mon, 10 Aug 2015 17:19:37 +0900 (JST) >> From: Tino Calancha >> >> In the *scratch* buffer i evaluated following expressions: >> >> (format-time-string "%c" (current-time)) >> "Mon 10 Aug 2015 03:11:35 PM JST" >> >> (apply 'encode-time(parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST")) >> (21959 38871) >> (apply 'encode-time(parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST")) >> (21959 38871) > > What do the following expressions produce? > > (parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST") > (parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST") > From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 13:46:46 2015 Received: (at 21229) by debbugs.gnu.org; 10 Aug 2015 17:46:46 +0000 Received: from localhost ([127.0.0.1]:52393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOr9q-0005dj-55 for submit@debbugs.gnu.org; Mon, 10 Aug 2015 13:46:46 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]:49791) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOr9n-0005da-RG for 21229@debbugs.gnu.org; Mon, 10 Aug 2015 13:46:44 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0NSV00400O0UOP00@a-mtaout21.012.net.il> for 21229@debbugs.gnu.org; Mon, 10 Aug 2015 20:46:42 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSV004M5O1UOH00@a-mtaout21.012.net.il>; Mon, 10 Aug 2015 20:46:42 +0300 (IDT) Date: Mon, 10 Aug 2015 20:46:30 +0300 From: Eli Zaretskii Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-reply-to: X-012-Sender: halo1@inter.net.il To: Tino Calancha Message-id: <83egjbox3d.fsf@gnu.org> References: <83h9o7oxvh.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: f92capac@gmail.com, 21229@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Tue, 11 Aug 2015 02:35:52 +0900 (JST) > From: Tino Calancha > cc: Tino Calancha , 21229@debbugs.gnu.org > > > |#> emacs -Q > > > (parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST") > (35 11 3 10 8 2015 1 nil nil) > (parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST") > (35 11 3 10 8 2015 1 nil nil) So, as you see, the problem is in parse-time-string. I'm not even sure that function is supposed to be able to parse the output of %c, since on my system that produces an obviously bogus result: (format-time-string "%c" (current-time)) => "8/10/2015 8:41:41 PM" but (parse-time-string "8/10/2015 8:41:41 PM") => (41 41 8 8 nil 2010 nil nil nil) Look, ma: no month! and the year is off! However, (current-time-string) => "Mon Aug 10 20:44:52 2015" and (parse-time-string "Mon Aug 10 20:44:52 2015") => (52 44 20 10 8 2015 1 nil nil) as expected. From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 10 22:33:12 2015 Received: (at 21229) by debbugs.gnu.org; 11 Aug 2015 02:33:12 +0000 Received: from localhost ([127.0.0.1]:52661 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOzNI-0002li-2I for submit@debbugs.gnu.org; Mon, 10 Aug 2015 22:33:12 -0400 Received: from calancha-ilc.kek.jp ([130.87.234.234]:59182) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZOzNF-0002lY-Bv for 21229@debbugs.gnu.org; Mon, 10 Aug 2015 22:33:10 -0400 Received: from calancha-ilc.kek.jp (localhost.localdomain [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id C12597228; Tue, 11 Aug 2015 11:36:12 +0900 (JST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Tue, 11 Aug 2015 11:36:12 +0900 (JST) Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id 8D264735B; Tue, 11 Aug 2015 11:36:12 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 760E77228; Tue, 11 Aug 2015 11:36:12 +0900 (JST) Date: Tue, 11 Aug 2015 11:36:12 +0900 (JST) From: Tino Calancha X-X-Sender: calancha@calancha-ilc.kek.jp To: Eli Zaretskii Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-Reply-To: <83egjbox3d.fsf@gnu.org> Message-ID: References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BitDefender-Scanner: Mail not scanned due to license constraints X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: Tino Calancha , 21229@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Maybe parsing "%c" looks too ambitius for the freedoom of the output format. At least recognize the flag %p (AM/PM) could be worth to support, because is found quite often, Actually from the github of this code i see the comment: ;; Nobody else handles iso8601 correctly, let's do it ourselves. Naively reading this, i would assume "%p" is supported. I took a look in the code of parse-time.el and "%p" is currently overlooked. But parse-time-tokenize process correctly such kind of dates: (parse-time-tokenize "Tue Aug 10 03:30:25 pm JST 2015") ("Tue" "Aug" 10 "03:30:25" "pm" "JST" 2015) (parse-time-tokenize "Tue Aug 10 03:30:25 am JST 2015") ("Tue" "Aug" 10 "03:30:25" "am" "JST" 2015) We may need something like: once you find "am" "pm" look the token: "HH:MM:SS" and ask: when "pm" and HH < 12: HH ---> HH + 12 On Mon, 10 Aug 2015, Eli Zaretskii wrote: >> Date: Tue, 11 Aug 2015 02:35:52 +0900 (JST) >> From: Tino Calancha >> cc: Tino Calancha , 21229@debbugs.gnu.org >> >> >> |#> emacs -Q >> >> >> (parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST") >> (35 11 3 10 8 2015 1 nil nil) >> (parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST") >> (35 11 3 10 8 2015 1 nil nil) > > So, as you see, the problem is in parse-time-string. I'm not even > sure that function is supposed to be able to parse the output of %c, > since on my system that produces an obviously bogus result: > > (format-time-string "%c" (current-time)) => "8/10/2015 8:41:41 PM" > > but > > (parse-time-string "8/10/2015 8:41:41 PM") => (41 41 8 8 nil 2010 nil nil nil) > > Look, ma: no month! and the year is off! > > However, > > (current-time-string) => "Mon Aug 10 20:44:52 2015" > > and > > (parse-time-string "Mon Aug 10 20:44:52 2015") => (52 44 20 10 8 2015 1 nil nil) > > as expected. > From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 04:33:19 2015 Received: (at 21229) by debbugs.gnu.org; 11 Aug 2015 08:33:19 +0000 Received: from localhost ([127.0.0.1]:52846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP4zn-0002xE-Bj for submit@debbugs.gnu.org; Tue, 11 Aug 2015 04:33:19 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:8870) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP4zk-0002x4-CF for 21229@debbugs.gnu.org; Tue, 11 Aug 2015 04:33:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkYFAMyyyVWkD4Xx/2dsb2JhbABdgkmCD4MkpmgBBptJAoIAAQEBAQEBgQuEJAEBAwEjBFIFCwgDDgwCBQwVAgIPAQQNPBOIGQMKCLhxkFkNhUYBAQEHAgEfgSKEfYUygk+CBzMHCoJfgUMBBJUQin6KQ4oAhzMmhAA8M4JMAQEB Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 11 Aug 2015 10:33:00 +0200 From: Nicolas Richard To: Tino Calancha Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> Date: Tue, 11 Aug 2015 10:32:55 +0200 In-Reply-To: (Tino Calancha's message of "Tue, 11 Aug 2015 11:36:12 +0900 (JST)") Message-ID: <87oaieb4y0.fsf@members.fsf.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21229 Cc: Eli Zaretskii , 21229@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Tino Calancha writes: > Maybe parsing "%c" looks too ambitius for the > freedoom of the output format. Also FWIW, parse-time-string won't parse (format-time-string "%c" (current-time)) correctly in many non-english locales because it won't recognize the month names. In my french setup: (format-time-string "%c" (current-time)) =3D> "mar. 11 ao=C3=BBt 2015 07:34= :35 CEST" "mar" stands for "mardi" (=3D Tuesday), but will be understood as "March" : (parse-time-string "mar. 11 ao=C3=BBt 2015 07:34:35 CEST") =3D> (35 34 7 11= 3 2015 nil nil nil) > We may need something like: > > once you find "am" "pm" look the token: "HH:MM:SS" and ask: > > when "pm" and HH < 12: HH ---> HH + 12 Currently parse-time-string works with rules (they are found in parse-time-rules), each setting one element of a (SEC MIN HOUR DAY MON YEAR DOW DST TZ) list. When one such element is set, parse-time-string won't modify it anymore. So we need a small change in the design here if we want to take PM into account. --=20 Nico From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 06:34:00 2015 Received: (at 21229) by debbugs.gnu.org; 11 Aug 2015 10:34:00 +0000 Received: from localhost ([127.0.0.1]:52878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP6sZ-0005nW-UD for submit@debbugs.gnu.org; Tue, 11 Aug 2015 06:34:00 -0400 Received: from calancha-ilc.kek.jp ([130.87.234.234]:59894) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP6sW-0005nK-I5 for 21229@debbugs.gnu.org; Tue, 11 Aug 2015 06:33:58 -0400 Received: from calancha-ilc.kek.jp (localhost.localdomain [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 770F242A4; Tue, 11 Aug 2015 19:37:00 +0900 (JST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Tue, 11 Aug 2015 19:37:00 +0900 (JST) Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id 3FF807440; Tue, 11 Aug 2015 19:37:00 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 2653242A4; Tue, 11 Aug 2015 19:37:00 +0900 (JST) Date: Tue, 11 Aug 2015 19:37:00 +0900 (JST) From: Tino Calancha X-X-Sender: calancha@calancha-ilc.kek.jp To: Nicolas Richard Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-Reply-To: <87oaieb4y0.fsf@members.fsf.org> Message-ID: References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="1468197610-804737284-1439289420=:16604" X-BitDefender-Scanner: Mail not scanned due to license constraints X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: Tino Calancha , Eli Zaretskii , 21229@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1468197610-804737284-1439289420=:16604 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8BIT I attached a patch showing how i am dealing temporally with this AM/PM issue. We have rule for iso 8601: "%Y-%m-%d" It should be possible to add support for: "%m/%d/%y" (similarly as we have several rules for HH:MM:SS) I guess its natural to support both. Tino On Tue, 11 Aug 2015, Nicolas Richard wrote: > Tino Calancha writes: >> Maybe parsing "%c" looks too ambitius for the >> freedoom of the output format. > > Also FWIW, parse-time-string won't parse (format-time-string "%c" > (current-time)) correctly in many non-english locales because it won't > recognize the month names. > > In my french setup: > (format-time-string "%c" (current-time)) => "mar. 11 août 2015 07:34:35 CEST" > > "mar" stands for "mardi" (= Tuesday), but will be understood as "March" : > (parse-time-string "mar. 11 août 2015 07:34:35 CEST") => (35 34 7 11 3 2015 nil nil nil) > >> We may need something like: >> >> once you find "am" "pm" look the token: "HH:MM:SS" and ask: >> >> when "pm" and HH < 12: HH ---> HH + 12 > > Currently parse-time-string works with rules (they are found in > parse-time-rules), each setting one element of a (SEC MIN HOUR DAY MON > YEAR DOW DST TZ) list. When one such element is set, parse-time-string > won't modify it anymore. So we need a small change in the design here if > we want to take PM into account. > > -- > Nico > --1468197610-804737284-1439289420=:16604 Content-Type: text/plain; charset=US-ASCII; name=parse-time.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=parse-time.patch LS0tIHBhcnNlLXRpbWUuZWwJMjAxNS0wOC0xMSAxODowNjo0Ni44OTU2Mzg0 OTUgKzA5MDANCisrKyBwYXJzZS10aW1lXzEuZWwJMjAxNS0wOC0xMSAxOTox OToyMC44NTUwMDE3NzYgKzA5MDANCkBAIC0xODIsNyArMTgyLDEwIEBADQog VGhlIHZhbHVlcyBhcmUgaWRlbnRpY2FsIHRvIHRob3NlIG9mIGBkZWNvZGUt dGltZScsIGJ1dCBhbnkgdmFsdWVzIHRoYXQgYXJlDQogdW5rbm93biBhcmUg cmV0dXJuZWQgYXMgbmlsLiINCiAgIChsZXQgKCh0aW1lIChsaXN0IG5pbCBu aWwgbmlsIG5pbCBuaWwgbmlsIG5pbCBuaWwgbmlsKSkNCi0JKHRlbXAgKHBh cnNlLXRpbWUtdG9rZW5pemUgKGRvd25jYXNlIHN0cmluZykpKSkNCisJCSh0 ZW1wIChwYXJzZS10aW1lLXRva2VuaXplIChkb3duY2FzZSBzdHJpbmcpKSkN CisJCShoYXMtcG0gbmlsKSkNCisJKHdoZW4gKG1lbWJlciAicG0iIHRlbXAp DQorCSAgKHNldHEgaGFzLXBtIHQpKQ0KICAgICAod2hpbGUgdGVtcA0KICAg ICAgIChsZXQgKChwYXJzZS10aW1lLWVsdCAocG9wIHRlbXApKQ0KIAkgICAg KHJ1bGVzIHBhcnNlLXRpbWUtcnVsZXMpDQpAQCAtMjE2LDYgKzIxOSw4IEBA DQogCQkJCSAgICAgICAoZnVuY2FsbCB0aGlzKSkpDQogCQkJCSBwYXJzZS10 aW1lLXZhbCkpKQ0KIAkJICAocnBsYWNhIChudGhjZHIgKHBvcCBzbG90cykg dGltZSkgbmV3LXZhbCkpKSkpKSkpDQorCSh3aGVuIChhbmQgaGFzLXBtICg8 IChudGggMiB0aW1lKSAxMikpDQorCSAgKHNldGYgKG50aCAyIHRpbWUpICgr IChudGggMiB0aW1lKSAxMikpKQ0KICAgICB0aW1lKSkNCiANCiAocHJvdmlk ZSAncGFyc2UtdGltZSkNCg== --1468197610-804737284-1439289420=:16604-- From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 06:40:13 2015 Received: (at 21229) by debbugs.gnu.org; 11 Aug 2015 10:40:13 +0000 Received: from localhost ([127.0.0.1]:52893 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP6yb-0005x7-Gy for submit@debbugs.gnu.org; Tue, 11 Aug 2015 06:40:13 -0400 Received: from mx2.suse.de ([195.135.220.15]:47421) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP6yZ-0005wy-Cn for 21229@debbugs.gnu.org; Tue, 11 Aug 2015 06:40:12 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1F680AC43; Tue, 11 Aug 2015 10:40:10 +0000 (UTC) From: Andreas Schwab To: Tino Calancha Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> X-Yow: Uh-oh!! I'm having TOO MUCH FUN!! Date: Tue, 11 Aug 2015 12:40:09 +0200 In-Reply-To: (Tino Calancha's message of "Tue, 11 Aug 2015 19:37:00 +0900 (JST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 21229 Cc: 21229@debbugs.gnu.org, Nicolas Richard X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) Tino Calancha writes: > It should be possible to add support for: > "%m/%d/%y" What about "%d/%m/%y"? 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." From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 06:48:58 2015 Received: (at 21229) by debbugs.gnu.org; 11 Aug 2015 10:48:58 +0000 Received: from localhost ([127.0.0.1]:52920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP774-0006AO-5f for submit@debbugs.gnu.org; Tue, 11 Aug 2015 06:48:58 -0400 Received: from calancha-ilc.kek.jp ([130.87.234.234]:59924) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP771-0006AE-PD for 21229@debbugs.gnu.org; Tue, 11 Aug 2015 06:48:56 -0400 Received: from calancha-ilc.kek.jp (localhost.localdomain [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 7DBC3722E; Tue, 11 Aug 2015 19:52:00 +0900 (JST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Tue, 11 Aug 2015 19:52:00 +0900 (JST) Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id 5011C73D4; Tue, 11 Aug 2015 19:52:00 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 374B4722E; Tue, 11 Aug 2015 19:52:00 +0900 (JST) Date: Tue, 11 Aug 2015 19:52:00 +0900 (JST) From: Tino Calancha X-X-Sender: calancha@calancha-ilc.kek.jp To: Andreas Schwab Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-Reply-To: Message-ID: References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BitDefender-Scanner: Mail not scanned due to license constraints X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: Tino Calancha , 21229@debbugs.gnu.org, Nicolas Richard X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) "%m/%d/%y" is better option because is seems more standard: it is listed in in the manuals of shell utility `date' and elisp function `format-time-string' as the output of the flag "%D" |#> date +%D 08/11/15 (format-time-string "%D") "08/11/15" Tino On Tue, 11 Aug 2015, Andreas Schwab wrote: > Tino Calancha writes: > >> It should be possible to add support for: >> "%m/%d/%y" > > What about "%d/%m/%y"? > > 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." > From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 07:00:32 2015 Received: (at 21229) by debbugs.gnu.org; 11 Aug 2015 11:00:33 +0000 Received: from localhost ([127.0.0.1]:52924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP7IG-0006S8-DE for submit@debbugs.gnu.org; Tue, 11 Aug 2015 07:00:32 -0400 Received: from mx2.suse.de ([195.135.220.15]:48673) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP7IE-0006Rz-0R for 21229@debbugs.gnu.org; Tue, 11 Aug 2015 07:00:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4EC80AC43; Tue, 11 Aug 2015 11:00:29 +0000 (UTC) From: Andreas Schwab To: Tino Calancha Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> X-Yow: I don't know WHY I said that.. I think it came from the FILLINGS in my rear molars.. Date: Tue, 11 Aug 2015 13:00:29 +0200 In-Reply-To: (Tino Calancha's message of "Tue, 11 Aug 2015 19:52:00 +0900 (JST)") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 21229 Cc: 21229@debbugs.gnu.org, Nicolas Richard X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) Tino Calancha 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." From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 07:44:21 2015 Received: (at 21229) by debbugs.gnu.org; 11 Aug 2015 11:44:21 +0000 Received: from localhost ([127.0.0.1]:52946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP7ye-0000Z5-I3 for submit@debbugs.gnu.org; Tue, 11 Aug 2015 07:44:20 -0400 Received: from calancha-ilc.kek.jp ([130.87.234.234]:60008) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZP7yb-0000Yu-QE for 21229@debbugs.gnu.org; Tue, 11 Aug 2015 07:44:19 -0400 Received: from calancha-ilc.kek.jp (localhost.localdomain [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 00C265960; Tue, 11 Aug 2015 20:47:19 +0900 (JST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Tue, 11 Aug 2015 20:47:20 +0900 (JST) Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id C269892DC; Tue, 11 Aug 2015 20:47:19 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id A6EFE5960; Tue, 11 Aug 2015 20:47:19 +0900 (JST) Date: Tue, 11 Aug 2015 20:47:19 +0900 (JST) From: Tino Calancha X-X-Sender: calancha@calancha-ilc.kek.jp To: Andreas Schwab Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-Reply-To: Message-ID: References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="1468197610-651149971-1439293639=:16978" X-BitDefender-Scanner: Mail not scanned due to license constraints X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: Tino Calancha , 21229@debbugs.gnu.org, Nicolas Richard X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1468197610-651149971-1439293639=:16978 Content-Type: text/plain; format=flowed; charset=US-ASCII 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 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." > --1468197610-651149971-1439293639=:16978 Content-Type: text/plain; charset=US-ASCII; name=parse-time_%p_%D.patch Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: Content-Disposition: attachment; filename=parse-time_%p_%D.patch LS0tIHBhcnNlLXRpbWUuZWwJMjAxNS0wOC0xMSAxODowNjo0Ni44OTU2Mzg0 OTUgKzA5MDANCisrKyBwYXJzZS10aW1lXzMuZWwJMjAxNS0wOC0xMSAyMDoy Mjo0NS42Mjc3MzcxMzMgKzA5MDANCkBAIC01NSw2ICs1NSw3IEBADQogICAg ICAgKGNvbmQgKChlcSBjaGFyID8rKSAxKQ0KIAkgICAgKChlcSBjaGFyID8t KSAtMSkNCiAJICAgICgoZXEgY2hhciA/OikgP2QpDQorCSAgICAoKGVxIGNo YXIgPy8pID9lKQ0KIAkgICAgKChzdHJpbmctbWF0Y2ggIltbOnVwcGVyOl1d IiAoc2V0cSBzdHIgKHN0cmluZyBjaGFyKSkpID9BKQ0KIAkgICAgKChzdHJp bmctbWF0Y2ggIltbOmxvd2VyOl1dIiBzdHIpID9hKQ0KIAkgICAgKChzdHJp bmctbWF0Y2ggIltbOmRpZ2l0Ol1dIiBzdHIpID8wKSkpKSkNCkBAIC0xNTYs NiArMTU3LDEyIEBADQogCQkJKD0gKGFyZWYgcGFyc2UtdGltZS1lbHQgNCkg Py0pDQogCQkJKD0gKGFyZWYgcGFyc2UtdGltZS1lbHQgNykgPy0pKSkNCiAg ICAgIFswIDRdIFs1IDddIFs4IDEwXSkNCisgICAgKCg1IDQgMykNCisgICAg ICwjJyhsYW1iZGEgKCkgKGFuZCAoc3RyaW5ncCBwYXJzZS10aW1lLWVsdCkN CisJCQkoPSAobGVuZ3RoIHBhcnNlLXRpbWUtZWx0KSA4KQ0KKwkJCSg9IChh cmVmIHBhcnNlLXRpbWUtZWx0IDIpID8vKQ0KKwkJCSg9IChhcmVmIHBhcnNl LXRpbWUtZWx0IDUpID8vKSkpDQorICAgICBbNiA4XSBbMCAyXSBbMyA1XSkN CiAgICAgKCgyIDEgMCkNCiAgICAgICwjJyhsYW1iZGEgKCkgKGFuZCAoc3Ry aW5ncCBwYXJzZS10aW1lLWVsdCkNCiAJCQkoPSAobGVuZ3RoIHBhcnNlLXRp bWUtZWx0KSA1KQ0KQEAgLTE4Miw3ICsxODksMTAgQEANCiBUaGUgdmFsdWVz IGFyZSBpZGVudGljYWwgdG8gdGhvc2Ugb2YgYGRlY29kZS10aW1lJywgYnV0 IGFueSB2YWx1ZXMgdGhhdCBhcmUNCiB1bmtub3duIGFyZSByZXR1cm5lZCBh cyBuaWwuIg0KICAgKGxldCAoKHRpbWUgKGxpc3QgbmlsIG5pbCBuaWwgbmls IG5pbCBuaWwgbmlsIG5pbCBuaWwpKQ0KLQkodGVtcCAocGFyc2UtdGltZS10 b2tlbml6ZSAoZG93bmNhc2Ugc3RyaW5nKSkpKQ0KKwkJKHRlbXAgKHBhcnNl LXRpbWUtdG9rZW5pemUgKGRvd25jYXNlIHN0cmluZykpKQ0KKwkJKGhhcy1w bSBuaWwpKQ0KKwkod2hlbiAobWVtYmVyICJwbSIgdGVtcCkNCisJICAoc2V0 cSBoYXMtcG0gdCkpDQogICAgICh3aGlsZSB0ZW1wDQogICAgICAgKGxldCAo KHBhcnNlLXRpbWUtZWx0IChwb3AgdGVtcCkpDQogCSAgICAocnVsZXMgcGFy c2UtdGltZS1ydWxlcykNCkBAIC0yMTYsNiArMjI2LDEzIEBADQogCQkJCSAg ICAgICAoZnVuY2FsbCB0aGlzKSkpDQogCQkJCSBwYXJzZS10aW1lLXZhbCkp KQ0KIAkJICAocnBsYWNhIChudGhjZHIgKHBvcCBzbG90cykgdGltZSkgbmV3 LXZhbCkpKSkpKSkpDQorICAgIChsZXQgKCh5ZWFyIChudGggNSB0aW1lKSkp DQorCSAgKGNvbmQgKChhbmQgKD49IHllYXIgNTApICg8PSB5ZWFyIDExMCkp DQorCQkJIChzZXRmIChudGggNSB0aW1lKSAoKyAxOTAwIHllYXIpKSkNCisJ CQkoKGFuZCAoPj0geWVhciAwKSAoPD0geWVhciA0OSkpDQorCQkJIChzZXRm IChudGggNSB0aW1lKSAoKyAyMDAwIHllYXIpKSkpKQ0KKwkod2hlbiAoYW5k IGhhcy1wbSAoPCAobnRoIDIgdGltZSkgMTIpKQ0KKwkgIChzZXRmIChudGgg MiB0aW1lKSAoKyAobnRoIDIgdGltZSkgMTIpKSkNCiAgICAgdGltZSkpDQog DQogKHByb3ZpZGUgJ3BhcnNlLXRpbWUpDQo= --1468197610-651149971-1439293639=:16978-- From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 11 12:05:53 2015 Received: (at 21229) by debbugs.gnu.org; 11 Aug 2015 16:05:53 +0000 Received: from localhost ([127.0.0.1]:53423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPC3k-0008Dr-Rj for submit@debbugs.gnu.org; Tue, 11 Aug 2015 12:05:53 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.181]:63069) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPC3i-0008Di-EP for 21229@debbugs.gnu.org; Tue, 11 Aug 2015 12:05:51 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CtCwA731xV//gFNJ1cgxCEAsEMCYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBViMQCzQSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0FtQQjhBQigngBAQE X-IPAS-Result: A0CtCwA731xV//gFNJ1cgxCEAsEMCYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBViMQCzQSFBgNJIg3CM8jAQEBAQYBAQEBHos6hQUHhC0FtQQjhBQigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="159484837" Received: from 157-52-5-248.cpe.teksavvy.com (HELO pastel.home) ([157.52.5.248]) by ironport2-out.teksavvy.com with ESMTP; 11 Aug 2015 12:05:49 -0400 Received: by pastel.home (Postfix, from userid 20848) id 8B26D6176E; Tue, 11 Aug 2015 12:05:49 -0400 (EDT) From: Stefan Monnier To: Andreas Schwab Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM Message-ID: References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> Date: Tue, 11 Aug 2015 12:05:49 -0400 In-Reply-To: (Andreas Schwab's message of "Tue, 11 Aug 2015 12:40:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 21229 Cc: Tino Calancha , 21229@debbugs.gnu.org, Nicolas Richard X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.3 (/) >> 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 01:42:38 2015 Received: (at 21229) by debbugs.gnu.org; 12 Aug 2015 05:42:38 +0000 Received: from localhost ([127.0.0.1]:53742 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPOo9-0006Kt-PO for submit@debbugs.gnu.org; Wed, 12 Aug 2015 01:42:38 -0400 Received: from calancha-ilc.kek.jp ([130.87.234.234]:33375) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPOo7-0006Kk-2W for 21229@debbugs.gnu.org; Wed, 12 Aug 2015 01:42:35 -0400 Received: from calancha-ilc.kek.jp (localhost.localdomain [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 54BF472D7; Wed, 12 Aug 2015 14:45:37 +0900 (JST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Wed, 12 Aug 2015 14:45:37 +0900 (JST) Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id 28EFF7F9F; Wed, 12 Aug 2015 14:45:36 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id BE1C772D7; Wed, 12 Aug 2015 14:45:36 +0900 (JST) Date: Wed, 12 Aug 2015 14:45:36 +0900 (JST) From: Tino Calancha X-X-Sender: calancha@calancha-ilc.kek.jp To: Stefan Monnier Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-Reply-To: Message-ID: References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BitDefender-Scanner: Mail not scanned due to license constraints X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: Tino Calancha , Andreas Schwab , 21229@debbugs.gnu.org, Nicolas Richard X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) 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 > From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 08:39:39 2015 Received: (at 21229) by debbugs.gnu.org; 12 Aug 2015 12:39:39 +0000 Received: from localhost ([127.0.0.1]:53919 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPVJj-0000dO-Bo for submit@debbugs.gnu.org; Wed, 12 Aug 2015 08:39:39 -0400 Received: from mtaout25.012.net.il ([80.179.55.181]:48907) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPVJg-0000dF-MS for 21229@debbugs.gnu.org; Wed, 12 Aug 2015 08:39:37 -0400 Received: from conversion-daemon.mtaout25.012.net.il by mtaout25.012.net.il (HyperSendmail v2007.08) id <0NSY00900YQDYK00@mtaout25.012.net.il> for 21229@debbugs.gnu.org; Wed, 12 Aug 2015 15:35:35 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout25.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NSY005PMYZBEO60@mtaout25.012.net.il>; Wed, 12 Aug 2015 15:35:35 +0300 (IDT) Date: Wed, 12 Aug 2015 15:39:13 +0300 From: Eli Zaretskii Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-reply-to: X-012-Sender: halo1@inter.net.il To: Tino Calancha Message-id: <834mk4ptou.fsf@gnu.org> References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: f92capac@gmail.com, schwab@suse.de, 21229@debbugs.gnu.org, monnier@iro.umontreal.ca, youngfrog@members.fsf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > Date: Wed, 12 Aug 2015 14:45:36 +0900 (JST) > From: Tino Calancha > Cc: Tino Calancha , Andreas Schwab , > 21229@debbugs.gnu.org, Nicolas Richard > > 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? Why not go with the locale's conventions? > date +%D (%m/%d/%y) IMO, this is not reasonable for locales which use %d/%m/%y (all of Europe, AFAIK, and then some). From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 08:41:02 2015 Received: (at 21229) by debbugs.gnu.org; 12 Aug 2015 12:41:02 +0000 Received: from localhost ([127.0.0.1]:53924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPVL3-0000fg-On for submit@debbugs.gnu.org; Wed, 12 Aug 2015 08:41:02 -0400 Received: from mxin.ulb.ac.be ([164.15.128.112]:14876) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPVL1-0000fL-Qi for 21229@debbugs.gnu.org; Wed, 12 Aug 2015 08:41:00 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApIBAMM9y1WkD4Xx/2dsb2JhbAANUMdggkwKAoIVAQEBAQEBhS8BAQMBMgFFAQULCw4TFg8JAwIBAgFFBgEMCAEBiCK5MpcOAQEBAQEBBAEBAQEBHYtThQkHhCwBBJILgwiHcI1VkTiEJYM7AQEB Received: from mathsrv4.ulb.ac.be (HELO [172.19.79.241]) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 12 Aug 2015 14:40:59 +0200 Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM To: Tino Calancha , Stefan Monnier References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> From: Nicolas Richard X-Enigmail-Draft-Status: N1110 Message-ID: <55CB3EDC.7060207@members.fsf.org> Date: Wed, 12 Aug 2015 14:41:00 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 21229 Cc: Andreas Schwab , 21229@debbugs.gnu.org, Nicolas Richard X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Le 12/08/2015 07:45, Tino Calancha a écrit : > 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? Because of this, I think it is best to throw an error if it's not yyyy mm dd. > the documentation string of parse-time-string should be updated to clearly point out what input strings are valid. Yep (once the decision is made). Nico. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 12 08:43:49 2015 Received: (at 21229) by debbugs.gnu.org; 12 Aug 2015 12:43:49 +0000 Received: from localhost ([127.0.0.1]:53936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPVNl-0000k6-Ev for submit@debbugs.gnu.org; Wed, 12 Aug 2015 08:43:49 -0400 Received: from calancha-ilc.kek.jp ([130.87.234.234]:33994) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZPVNj-0000jy-Ka for 21229@debbugs.gnu.org; Wed, 12 Aug 2015 08:43:48 -0400 Received: from calancha-ilc.kek.jp (localhost.localdomain [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 790925960; Wed, 12 Aug 2015 21:46:51 +0900 (JST) Received: from localhost.localdomain [127.0.0.1] by BitDefender SMTP Proxy on localhost.localdomain [127.0.0.1] for localhost.localdomain [127.0.0.1]; Wed, 12 Aug 2015 21:46:51 +0900 (JST) Received: by calancha-ilc.kek.jp (Postfix, from userid 500) id 3C38B7440; Wed, 12 Aug 2015 21:46:51 +0900 (JST) Received: from localhost (localhost [127.0.0.1]) by calancha-ilc.kek.jp (Postfix) with ESMTP id 2118D5960; Wed, 12 Aug 2015 21:46:51 +0900 (JST) Date: Wed, 12 Aug 2015 21:46:51 +0900 (JST) From: Tino Calancha X-X-Sender: calancha@calancha-ilc.kek.jp To: Eli Zaretskii Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM In-Reply-To: <834mk4ptou.fsf@gnu.org> Message-ID: References: <83h9o7oxvh.fsf@gnu.org> <83egjbox3d.fsf@gnu.org> <87oaieb4y0.fsf@members.fsf.org> <834mk4ptou.fsf@gnu.org> User-Agent: Alpine 2.20 (LRH 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BitDefender-Scanner: Mail not scanned due to license constraints X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 21229 Cc: Tino Calancha , schwab@suse.de, 21229@debbugs.gnu.org, monnier@iro.umontreal.ca, youngfrog@members.fsf.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) As far as is clearly explained in the documentation string of parse-time-string i am fine with that. On Wed, 12 Aug 2015, Eli Zaretskii wrote: >> Date: Wed, 12 Aug 2015 14:45:36 +0900 (JST) >> From: Tino Calancha >> Cc: Tino Calancha , Andreas Schwab , >> 21229@debbugs.gnu.org, Nicolas Richard >> >> 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? > > Why not go with the locale's conventions? > >> date +%D (%m/%d/%y) > > IMO, this is not reasonable for locales which use %d/%m/%y (all of > Europe, AFAIK, and then some). > From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 24 14:36:07 2020 Received: (at 21229) by debbugs.gnu.org; 24 Aug 2020 18:36:07 +0000 Received: from localhost ([127.0.0.1]:59223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAHKB-000271-BW for submit@debbugs.gnu.org; Mon, 24 Aug 2020 14:36:07 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAHK9-00026V-92 for 21229@debbugs.gnu.org; Mon, 24 Aug 2020 14:36:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=8breoTzoEXHH/cGNonUd9sTtBWxrczU+HzvfgTWYf/s=; b=u+SqerYaM8ulEhVzMAhmKeuE6L twhjsj0ZmGjVfUJeJ8w5O6wEtVv9LOsC02bhcEANSL3puiDGfeHvVqk+lB+xVEg5lxg0ZsLOVL5ii A9KfIkPhhhag99BTzCFxU2gJeBup+9q3yOLLP0IYHJprFn6JXwKsU6msGPoW0NXMzpEE=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAHK0-0002Dt-TU; Mon, 24 Aug 2020 20:35:59 +0200 From: Lars Ingebrigtsen To: Tino Calancha Subject: Re: bug#21229: 24.5; parse-time-string ignore PM/AM References: <83h9o7oxvh.fsf@gnu.org> X-Now-Playing: Bernard Grancher featuring Laetitia Sadier's =?utf-8?B?X0wn?= =?utf-8?B?aW1tb2TDg8KpcsODwqkgYmllbi3Dg8KqdHJl?= de =?utf-8?B?bCdpbWI=?= =?utf-8?B?w4PCqWNpbGVfOiAiTCdpbW1vZMODwqlyw4PCqSBCaWVuw6LCgMKLLcOiwoA=?= =?utf-8?B?wovDg8KqdHJl?= de =?utf-8?B?TCdpbWLDg8KpY2lsZSI=?= Date: Mon, 24 Aug 2020 20:35:55 +0200 In-Reply-To: (Tino Calancha's message of "Tue, 11 Aug 2015 02:35:52 +0900 (JST)") Message-ID: <87imd76gdw.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Tino Calancha writes: > |#> emacs -Q > > (parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST") > (35 11 3 10 8 2015 1 nil nil) > (parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST") > (35 11 3 10 8 2015 1 nil nil) Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21229 Cc: Eli Zaretskii , 21229@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Tino Calancha writes: > |#> emacs -Q > > (parse-time-string "Mon 10 Aug 2015 03:11:35 PM JST") > (35 11 3 10 8 2015 1 nil nil) > (parse-time-string "Mon 10 Aug 2015 03:11:35 AM JST") > (35 11 3 10 8 2015 1 nil nil) Yeah, parse-time-string parses RFC822 date strings (and these days, also ISO8601 strings) -- it is not something that parses locale-specific or otherwise randomly-formatted strings. So I don't think there's anything here to fix, and I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 24 14:36:14 2020 Received: (at control) by debbugs.gnu.org; 24 Aug 2020 18:36:14 +0000 Received: from localhost ([127.0.0.1]:59226 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAHKI-00027L-I6 for submit@debbugs.gnu.org; Mon, 24 Aug 2020 14:36:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60562) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kAHKH-000278-09 for control@debbugs.gnu.org; Mon, 24 Aug 2020 14:36:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=UQVC2TB5D1+6Mpjpf8fll8WuegI3h53OTRvGCK91POU=; b=JHaNNYJjbWmYx8HgHnPlaW04Ix FuNyUXaPcMb/ipfOyFTNM81w7oTmUzNz4z4upAbaTjd0Eu/Gj/MnOjiqKQgFwmqP3tuhwiTeDlil7 9Houk31g6BoKXDM4+hGRum9zoBXEUzXZ3KUHF0ZpH9YMFPrKU4mpJ396DExhsRE24fIQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kAHK9-0002E5-A4 for control@debbugs.gnu.org; Mon, 24 Aug 2020 20:36:07 +0200 Date: Mon, 24 Aug 2020 20:36:04 +0200 Message-Id: <87h7sr6gdn.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #21229 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 21229 notabug close 21229 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 21229 notabug close 21229 quit From unknown Tue Jun 24 20:51:02 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 22 Sep 2020 11:24:07 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator