[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: |
T. V. Raman |
Subject: |
Re: Emacs Lisp date/time functions and RFC 3339? |
Date: |
Fri, 10 Nov 2006 06:33:37 -0800 |
The -08:00 vs emacs' -0800 for local timezones is a bigger problem.
>>>>> "Kim" == Kim F Storm <address@hidden> writes:
Kim> 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.
Kim>
Kim> So we should add at least %:z .
Kim>
>>
>> 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.
Kim>
Kim> The timezone is not optional.
Kim>
Kim> time-offset = "Z" / time-numoffset
Kim>
Kim> partial-time = time-hour ":" time-minute ":"
Kim> time-second [time-secfrac]
Kim>
Kim> full-time = partial-time time-offset
Kim>
Kim> date-time = full-date "T" full-time
Kim>
Kim>
Kim> -- Kim F. Storm <address@hidden> http://www.cua.dk
Kim>
Kim>
Kim>
Kim> _______________________________________________
Kim> Emacs-devel mailing list address@hidden
Kim> http://lists.gnu.org/mailman/listinfo/emacs-devel
--
Best Regards,
--raman
Email: address@hidden
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: address@hidden
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs
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