[Top][All Lists]

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

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

From: Kim F. Storm
Subject: Re: Emacs Lisp date/time functions and RFC 3339?
Date: Fri, 10 Nov 2006 14:28:50 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> 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.

So we should add at least %:z .

>> 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.

The timezone is not optional.

   time-offset     = "Z" / time-numoffset

   partial-time    = time-hour ":" time-minute ":" time-second

   full-time       = partial-time time-offset

   date-time       = full-date "T" full-time

Kim F. Storm <address@hidden> http://www.cua.dk

reply via email to

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