From owner-freebsd-bugs Mon Jul 24 15:26: 4 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from hermes.mail.nl.demon.net (hermes.mail.nl.demon.net [194.159.72.197]) by hub.freebsd.org (Postfix) with ESMTP id CBEF237BBFD; Mon, 24 Jul 2000 15:25:58 -0700 (PDT) (envelope-from pdp@nl.demon.net) Received: from samhain.noc.nl.demon.net ([194.159.72.214] ident=exim) by hermes.mail.nl.demon.net with esmtp (Exim 3.16 #1) id 13GqfA-000MBd-00; Tue, 25 Jul 2000 00:25:28 +0200 Received: from pdp by samhain.noc.nl.demon.net with local id 13GqfA-000HTZ-00 for multiple recipients; Mon, 24 Jul 2000 22:25:28 +0000 Date: Tue, 25 Jul 2000 00:25:27 +0200 From: Phil Pennock 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> References: <200007242210.PAA15988@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200007242210.PAA15988@freefall.freebsd.org>; from "gnats-admin@FreeBSD.org" on Mon 24 Jul 2000 (15:10 -0700) Organisation: Demon Internet Netherlands Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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 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