emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs Lisp date/time functions and RFC 3339?


From: Andreas Schwab
Subject: Re: Emacs Lisp date/time functions and RFC 3339?
Date: Fri, 10 Nov 2006 13:41:51 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

address@hidden (Kim F. Storm) writes:

> Andreas Schwab <address@hidden> writes:
>
>> "T. V. Raman" <address@hidden> writes:
>>
>>> The date/time handling functions in Emacs ---
>>> calendar/time-date.el, together with the primitives for
>>> encode-time and decode-time do not handle this format well, nor
>>> does format-time-string.
>>
>> In which way does format-time-string not handle that format?
>
> E.g.  %z => -0800   whereas the rfc requests -08:00

GNU date supports %:z, %::z and %:::z, should be easy to add that to
format-time-string.

> Also for UTC, %z => 0000 whereas the rfc requests Z

If you know that you are formatting UTC you can just put the Z in the
format string.  The use of Z for UTC is not mandated.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]