From: "T. V. Raman" <raman@users.sf.net>
Cc: schwab@suse.de, raman@users.sf.net, emacs-devel@gnu.org
Subject: Re: Emacs Lisp date/time functions and RFC 3339?
Date: Fri, 10 Nov 2006 06:33:37 -0800 [thread overview]
Message-ID: <17748.36289.328185.680744@gargle.gargle.HOWL> (raw)
In-Reply-To: <m3y7qj4ei5.fsf@kfs-l.imdomain.dk>
The -08:00 vs emacs' -0800 for local timezones is a bigger problem.
>>>>> "Kim" == Kim F Storm <storm@cua.dk> writes:
Kim> Andreas Schwab <schwab@suse.de> writes:
>> storm@cua.dk (Kim F. Storm) writes:
>>
>>> Andreas Schwab <schwab@suse.de> writes:
>>>
>>>> "T. V. Raman" <raman@users.sf.net> 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 <storm@cua.dk> http://www.cua.dk
Kim>
Kim>
Kim>
Kim> _______________________________________________
Kim> Emacs-devel mailing list Emacs-devel@gnu.org
Kim> http://lists.gnu.org/mailman/listinfo/emacs-devel
--
Best Regards,
--raman
Email: raman@users.sf.net
WWW: http://emacspeak.sf.net/raman/
AIM: emacspeak GTalk: tv.raman.tv@gmail.com
PGP: http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman
IRC: irc://irc.freenode.net/#emacs
next prev parent reply other threads:[~2006-11-10 14:33 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-09 3:34 Emacs Lisp date/time functions and RFC 3339? T. V. Raman
2006-11-09 21:57 ` Edward O'Connor
2006-11-09 23:27 ` Richard Stallman
2006-11-10 2:54 ` T. V. Raman
2006-11-10 15:48 ` Miles Bader
2006-11-10 16:56 ` Nic James Ferrier
2006-11-12 1:53 ` T. V. Raman
2006-11-12 2:52 ` Miles Bader
2006-11-12 19:57 ` T. V. Raman
2006-11-11 2:10 ` Richard Stallman
2006-11-10 10:15 ` Andreas Schwab
2006-11-10 10:55 ` Kim F. Storm
2006-11-10 12:41 ` Andreas Schwab
2006-11-10 13:28 ` Kim F. Storm
2006-11-10 13:35 ` Andreas Schwab
2006-11-10 14:06 ` Kim F. Storm
2006-11-10 14:33 ` T. V. Raman [this message]
2006-11-10 14:32 ` T. V. Raman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17748.36289.328185.680744@gargle.gargle.HOWL \
--to=raman@users.sf.net \
--cc=emacs-devel@gnu.org \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.