[local-time-devel] format-timestring :wday bug

Attila Lendvai attila.lendvai at gmail.com
Tue Dec 23 01:34:09 UTC 2008


> I don't follow.  The docstrings (and HTML/PDF docs) indicate :wday should
> print "1" for Monday.  But that wasn't implemented in the version I
> downloaded.

i didn't know you needed numeric weekdays. it was not supported, only
partial remains of it were in the docstring, probably due to the fact
that this is locale dependent. in spite of this i've added a :weekday
directive that documents the start offset and the meaning of the
printed number (following the us locale, where the week starts with
sunday).

get or pull the darcs repo for the fix.

if you just need the numeric value, you can also use
with-decoded-timestamp to extract it.

fyi, cl-l10n has some support for formatting local-time timestamps in
a locale dependent manner, but not even the CLDR xml's have
information about the first day of the week for now, so only localized
textual weekday presentation is supported by cl-l10n at the moment.

hth,

-- 
 attila

ps: Daniel (Lowe), speak up or just push the change if you have
different intentions with this!




More information about the local-time-devel mailing list