|
From: | Shawn Betts |
Subject: | Re: [STUMP] [PATCH] (format-time-string &optional format-string time) |
Date: | Tue, 31 Jul 2007 20:02:05 -0700 |
Hello,
in case the title was too cryptic, the attached patch lets you specify
your own time/date format when calling (format-time-string), with
default to `*format-time-string-default*', i.e. "%a %b %e %k:%M:%S %Y"
(this is the same value used before my patch).
Since I wanted to mimic `date` behavior, I implemented all the `date`
format options in `*format-time-string-alist*', except some I don't
think are useful. These ones are commented out in the alist
declaration. If required, I can try to implement them as well.
My first working version was a bit different and then the patch was
reviewed by Luigi Panzeri (matley), so he deserves some credits.
Hope you like the patch :-)
[Prev in Thread] | Current Thread | [Next in Thread] |