[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
[time-secfrac]
full-time = partial-time time-offset
date-time = full-date "T" full-time
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: Emacs Lisp date/time functions and RFC 3339?, (continued)
- Re: Emacs Lisp date/time functions and RFC 3339?, T. V. Raman, 2006/11/09
- Re: Emacs Lisp date/time functions and RFC 3339?, Miles Bader, 2006/11/10
- Re: Emacs Lisp date/time functions and RFC 3339?, Nic James Ferrier, 2006/11/10
- Re: Emacs Lisp date/time functions and RFC 3339?, T. V. Raman, 2006/11/11
- Re: Emacs Lisp date/time functions and RFC 3339?, Miles Bader, 2006/11/11
- Re: Emacs Lisp date/time functions and RFC 3339?, T. V. Raman, 2006/11/12
- Re: Emacs Lisp date/time functions and RFC 3339?, Richard Stallman, 2006/11/10
Re: Emacs Lisp date/time functions and RFC 3339?, Andreas Schwab, 2006/11/10
Re: Emacs Lisp date/time functions and RFC 3339?, T. V. Raman, 2006/11/10