[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
%z and argument UNIVERSAL don't play together in format-time-string
From: |
Hannu Koivisto |
Subject: |
%z and argument UNIVERSAL don't play together in format-time-string |
Date: |
23 Jul 2001 19:32:44 +0300 |
User-agent: |
Gnus/5.090003 (Oort Gnus v0.03) Emacs/20.7 |
Greetings,
Emacs 20.7 from Debian GNU/Linux unstable x86:
(format-time-string "%z") ; I expect "+0300"
=> "+0300"
(format-time-string "%z" nil t) ; I expect "+0000"
=> "+0300" ; Not what I expected!
OTOH:
(format-time-string "%Z")
=> "EEST"
(format-time-string "%Z" nil t)
=> "GMT"
(format-time-string "%Y-%m-%dT%R%z")
=> "2001-07-23T19:15+0300"
(format-time-string "%Y-%m-%dT%R%z" nil t)
=> "2001-07-23T16:15+0300"
I.e. the argument UNIVERSAL has the desired effect on at least %R
and %Z.
--
Hannu
- %z and argument UNIVERSAL don't play together in format-time-string,
Hannu Koivisto <=