From: "Drew Adams" <drew.adams@oracle.com>
To: "'Miles Bader'" <miles@gnu.org>
Cc: 'Emacs-Devel' <emacs-devel@gnu.org>
Subject: RE: regexp to match formatted time string?
Date: Fri, 1 Feb 2008 16:07:25 -0800 [thread overview]
Message-ID: <008f01c8652f$9778e510$864a908d@us.oracle.com> (raw)
In-Reply-To: <87ejbwkzvk.fsf@catnip.gol.com>
> > 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)
Good point.
I would be interested even if such a function were limited wrt the formats
it supported - some well-defined subset of what `format-time-string'
accepts.
The alternative, as I see it, is code that supports only one or a few
hard-coded time formats.
prev parent reply other threads:[~2008-02-02 0:07 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
2008-02-02 0:07 ` Drew Adams [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='008f01c8652f$9778e510$864a908d@us.oracle.com' \
--to=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=miles@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).