Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Jul 2000 00:25:27 +0200
From:      Phil Pennock <pdp@nl.demon.net>
To:        gnats-admin@FreeBSD.org, freebsd-bugs@FreeBSD.org
Subject:   Re: misc/20159: strftime() can't produce ISO8601 format timezone representation
Message-ID:  <20000725002527.A67116@samhain.noc.nl.demon.net>
In-Reply-To: <200007242210.PAA15988@freefall.freebsd.org>; from "gnats-admin@FreeBSD.org" on Mon 24 Jul 2000 (15:10 -0700)
References:  <E13GqO3-000HRe-00@samhain.noc.nl.demon.net> <200007242210.PAA15988@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2000-07-24 at 15:10 -0700, gnats-admin@FreeBSD.org wrote:
> It has the internal identification `misc/20159'.

> >Synopsis:       strftime() can't produce ISO8601 format timezone representation

I have been informed that GNU strftime() implements this same behaviour,
using %z in the same way.  My only available reference is an old Debian
box which does not document this.  I have not examined the code.  This
is a clean-room implementation.

Thinking about -0000 ("not telling you my timezone") - I seem to recall
that there was a struct tm entry which could be used for this.  An old
fuzzy memory suggests tm_isdst, but this is not documented on FreeBSD
strftime(3).  strftime.c has %Z giving '?' if tm_isdst is not either 0
or 1 - my memory suggests -1.  This would have been either Solaris or
GNU, from documentation read some time ago.  If an definitive answer for
this can be given, the code mod is trivial.

A feature request (already!) is to support +nn:nn which allegedly the
GNU version can't handle.  Could someone with appropriate authority
please say if it is acceptable to use %Ez?  I suspect not.  :^/
-- 
Phil Pennock                        <pdp@nl.demon.net> <Phil.Pennock@thus.net>
Demon Internet Nederland -- Network Operations Centre -- Systems Administrator
Libertes philosophica.
Sales: +31 20 422 20 00                                Support: 0800 33 6666 8


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000725002527.A67116>