From owner-freebsd-stable Wed Mar 3 14:34:54 1999 Delivered-To: freebsd-stable@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 110AC15610 for ; Wed, 3 Mar 1999 14:34:47 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id HAA01931; Thu, 4 Mar 1999 07:34:38 +0900 (JST) Message-ID: <36DDB1F9.D944C26E@newsguy.com> Date: Thu, 04 Mar 1999 07:04:41 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: Marc Olzheim Cc: stable@FreeBSD.org Subject: Re: tzset in libc References: <19990303170256.A15288@stack.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marc Olzheim wrote: > > I was wondering why it was that each time you call localtime() or strftime(), > tzset() is called also. Isn't it so that it only has to be called once > per process and then be regearded as already set ? [...] > When the timezone changes, you'd have to call tzset() manually, but in my > case, it's worth it. Could it be that time zone can change because of daylight savings? Notice, this is just an uninformed guess. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org "FreeBSD is Yoda, Linux is Luke Skywalker." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message