From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: regexp to match formatted time string? Date: Sat, 02 Feb 2008 08:42:23 +0900 Message-ID: <87ejbwkzvk.fsf@catnip.gol.com> References: <008e01c86521$ef2366e0$864a908d@us.oracle.com> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201909364 1077 80.91.229.12 (1 Feb 2008 23:42:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2008 23:42:44 +0000 (UTC) Cc: Emacs-Devel To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 02 00:43:05 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JL5XF-0005So-0V for ged-emacs-devel@m.gmane.org; Sat, 02 Feb 2008 00:43:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JL5Wn-0004nF-7r for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2008 18:42:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JL5Wj-0004lf-Ea for emacs-devel@gnu.org; Fri, 01 Feb 2008 18:42:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JL5Wi-0004kO-IE for emacs-devel@gnu.org; Fri, 01 Feb 2008 18:42:32 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JL5Wi-0004kH-9d for emacs-devel@gnu.org; Fri, 01 Feb 2008 18:42:32 -0500 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JL5We-0008EP-Dh; Fri, 01 Feb 2008 18:42:28 -0500 Original-Received: from 203-216-97-023.dsl.gol.ne.jp ([203.216.97.23] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1JL5Wb-0006hL-C1; Sat, 02 Feb 2008 08:42:25 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id C559BFB2; Sat, 2 Feb 2008 08:42:23 +0900 (JST) System-Type: i686-pc-linux-gnu In-Reply-To: <008e01c86521$ef2366e0$864a908d@us.oracle.com> (Drew Adams's message of "Fri, 1 Feb 2008 14:29:39 -0800") Original-Lines: 21 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:87965 Archived-At: "Drew Adams" writes: > Anyone have a function that takes, as its argument, a string that is > acceptable as input to `format-time-string' (i.e. a value like > `display-time-format'), and returns a regexp that will match all such > formatted times, that is, whatever `format-time-string' would return for the > same input, for any time? It does sound kind of useful, but wouldn't it be rather hard for some of the formats format-time-string supports -- e.g., %c, %a, or %b? Maybe that doesn't matter for the typical uses of such a function... (formats embedded in a file being font-locked would tend to be more portable ones, perhaps) -Miles -- Carefully crafted initial estimates reward you not only with reduced computational effort, but also with understanding and increased self-esteem. -- Numerical methods in C, Chapter 9. "Root Finding and Nonlinear Sets of Equations"