[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[STUMP] [PATCH] (format-time-string &optional format-string time)
From: |
Luca Capello |
Subject: |
[STUMP] [PATCH] (format-time-string &optional format-string time) |
Date: |
Wed, 18 Jul 2007 13:00:31 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
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 :-)
Thx, bye,
Gismo / Luca
stumpwm_format-time-string_gismo-matley-20070718.patch.gz
Description: (format-time-string &optional format-string time)
- [STUMP] [PATCH] (format-time-string &optional format-string time),
Luca Capello <=