[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: |
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."
- Re: Emacs Lisp date/time functions and RFC 3339?, (continued)
- Re: Emacs Lisp date/time functions and RFC 3339?, Richard Stallman, 2006/11/09
- 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