From owner-freebsd-questions Fri Apr 20 1:49:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93]) by hub.freebsd.org (Postfix) with ESMTP id BF3C037B422 for ; Fri, 20 Apr 2001 01:49:36 -0700 (PDT) (envelope-from rasputin@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by serenity.mcc.ac.uk with esmtp (Exim 2.05 #4) id 14qWbf-0000mz-00; Fri, 20 Apr 2001 09:49:35 +0100 Received: (from rasputin@localhost) by dogma.freebsd-uk.eu.org (8.11.1/8.11.1) id f3K8nYP53709; Fri, 20 Apr 2001 09:49:34 +0100 (BST) (envelope-from rasputin) Date: Fri, 20 Apr 2001 09:49:34 +0100 From: Rasputin To: Gianmarco Giovannelli Cc: questions@freebsd.org Subject: Re: I FreeBSD missing timezone var ? Message-ID: <20010420094934.C53292@dogma.freebsd-uk.eu.org> Reply-To: Rasputin References: <5.1.0.14.2.20010420082312.03eeabe8@194.184.65.4> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <5.1.0.14.2.20010420082312.03eeabe8@194.184.65.4>; from gmarco@giovannelli.it on Fri, Apr 20, 2001 at 08:27:53AM +0200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Gianmarco Giovannelli [010420 07:34]: > > A friend is converting a tool from Linux to FreeBSD. Ihe is saying we miss > a var. I am not a C expert so I can't answer him. > > "The only difference is this -- in linux, there's a builtin variable called > _timezone. I couldn't find that in FreeBSD, so I created a simple function > that would determine the timezone. " > > Do we have something similar to the _timezone var ? Yes. [rasputin@dogma rasputin]$ man -k timezone adjkerntz(8) - adjust local time CMOS clock to reflect time zone changes and keep current ti mezone offset for the kernel timezone(3) - return the timezone abbreviation tzfile(5) - timezone information tzsetup(8) - set local timezone zdump(8) - timezone dumper zic(8) - timezone compiler -- Rasputin Jack of All Trades :: Master of Nuns To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message