[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: regexp to match formatted time string?
From: |
Miles Bader |
Subject: |
Re: regexp to match formatted time string? |
Date: |
Sat, 02 Feb 2008 08:42:23 +0900 |
"Drew Adams" <address@hidden> 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"