From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Yoni Rabkin Katzenell Newsgroups: gmane.emacs.help Subject: Re: date parsing Date: Tue, 10 Aug 2004 23:15:12 +0300 Organization: NTT/VERIO Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1092168991 6642 80.91.224.253 (10 Aug 2004 20:16:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 10 Aug 2004 20:16:31 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Aug 10 22:16:18 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bud2g-00026r-00 for ; Tue, 10 Aug 2004 22:16:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bud6V-0007Ve-3u for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Aug 2004 16:20:15 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.news.ucla.edu!newsfeed.media.kyoto-u.ac.jp!newspeer1.mlpsca01.us.to.verio.net!verio!newsread1.dllstx09.us.to.verio.net.POSTED!53ab2750!not-for-mail Original-Newsgroups: gnu.emacs.help X-Ethics: Use GNU User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:qC5tUqKj9Ihnna7xqYK9euyUdXI= Original-Lines: 24 Original-NNTP-Posting-Host: 192.114.47.10 Original-X-Complaints-To: abuse@verio.net Original-X-Trace: newsread1.dllstx09.us.to.verio.net 1092168865 192.114.47.10 (Tue, 10 Aug 2004 20:14:25 GMT) Original-NNTP-Posting-Date: Tue, 10 Aug 2004 20:14:25 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:124730 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20073 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20073 Thanks, but I think I'll stick to changes that will not disappear next time I compile Emacs. Modifying the functions from the calendar dir was is still my last resort. As for checking that parse-time is really ok, the real test would be to encode that value that parse-time gives you and then decode it back to a string and see that they match. I'll quote from time-date.el: ;; `parse-time-string' isn't sufficiently general or ;; robust. It fails to grok some of the formats that ;; timezone does (e.g. dodgy post-2000 stuff from some ;; Elms) and either fails or returns bogus values. Lars ;; reverted this change, but that loses non-trivially ;; often for me. -- fx Nevertheless, thank you for the cool idea and the time you took to promptly reply. -- "Cut your own wood and it will warm you twice" Regards, Yoni Rabkin Katzenell