unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* regexp to match formatted time string?
@ 2008-02-01 22:29 Drew Adams
  2008-02-01 23:42 ` Miles Bader
  0 siblings, 1 reply; 3+ messages in thread
From: Drew Adams @ 2008-02-01 22:29 UTC (permalink / raw)
  To: Emacs-Devel

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-02-02  0:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

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).