From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: regexp to match formatted time string? Date: Fri, 1 Feb 2008 14:29:39 -0800 Message-ID: <008e01c86521$ef2366e0$864a908d@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201905014 20258 80.91.229.12 (1 Feb 2008 22:30:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Feb 2008 22:30:14 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 01 23:30:34 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 1JL4Ol-0006Vb-FS for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2008 23:30:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JL4OJ-0005Dl-Fm for ged-emacs-devel@m.gmane.org; Fri, 01 Feb 2008 17:29:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JL4OD-0005DH-NL for emacs-devel@gnu.org; Fri, 01 Feb 2008 17:29:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JL4OB-0005CT-SW for emacs-devel@gnu.org; Fri, 01 Feb 2008 17:29:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JL4OB-0005CK-FA for emacs-devel@gnu.org; Fri, 01 Feb 2008 17:29:39 -0500 Original-Received: from agminet01.oracle.com ([141.146.126.228]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JL4OB-00059I-2s for emacs-devel@gnu.org; Fri, 01 Feb 2008 17:29:39 -0500 Original-Received: from rgmgw2.us.oracle.com (rgmgw2.us.oracle.com [138.1.186.111]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m11MTZxP022586 for ; Fri, 1 Feb 2008 16:29:35 -0600 Original-Received: from rcsmt251.oracle.com (rcsmt251.oracle.com [148.87.90.196]) by rgmgw2.us.oracle.com (Switch-3.2.4/Switch-3.2.4) with ESMTP id m11KaYpJ012327 for ; Fri, 1 Feb 2008 15:29:34 -0700 Original-Received: from inet-141-146-46-1.oracle.com by acsmt351.oracle.com with ESMTP id 3552348421201904969; Fri, 01 Feb 2008 14:29:29 -0800 Original-Received: from dradamslap1 (/141.144.74.134) by bhmail.oracle.com (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 01 Feb 2008 14:29:29 -0800 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AchlIe6gZjcThO1gTyOG7IOphjfU6g== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:87964 Archived-At: 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? IOW, (foo ARG UNIVERSAL) would return a regexp that matches (format-time-string ARG TIME UNIVERSAL), for all values of TIME. I searched the source code a bit, but didn't find anything. Seems like this would be useful. For instance, I would use it in some font-locking code, to match a time/date field, based on the user's preferred time format.