all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: regexp to match formatted time string?
Date: Sat, 02 Feb 2008 08:42:23 +0900	[thread overview]
Message-ID: <87ejbwkzvk.fsf@catnip.gol.com> (raw)
In-Reply-To: <008e01c86521$ef2366e0$864a908d@us.oracle.com> (Drew Adams's message of "Fri, 1 Feb 2008 14:29:39 -0800")

"Drew Adams" <drew.adams@oracle.com> 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"




  reply	other threads:[~2008-02-01 23:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01 22:29 regexp to match formatted time string? Drew Adams
2008-02-01 23:42 ` Miles Bader [this message]
2008-02-02  0:07   ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ejbwkzvk.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.