From owner-freebsd-questions@FreeBSD.ORG Thu Apr 15 22:00:57 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BAE216A4CE for ; Thu, 15 Apr 2004 22:00:57 -0700 (PDT) Received: from av7-1-sn2.hy.skanova.net (av7-1-sn2.hy.skanova.net [81.228.8.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 709A943D45 for ; Thu, 15 Apr 2004 22:00:56 -0700 (PDT) (envelope-from ertr1013@student.uu.se) Received: by av7-1-sn2.hy.skanova.net (Postfix, from userid 502) id 2582537E46; Fri, 16 Apr 2004 07:00:55 +0200 (CEST) Received: from smtp2-1-sn2.hy.skanova.net (smtp2-1-sn2.hy.skanova.net [81.228.8.177]) by av7-1-sn2.hy.skanova.net (Postfix) with ESMTP id 148BB37E44 for ; Fri, 16 Apr 2004 07:00:55 +0200 (CEST) Received: from falcon.midgard.homeip.net (h201n1fls24o1048.bredband.comhem.se [212.181.162.201]) by smtp2-1-sn2.hy.skanova.net (Postfix) with SMTP id 4DA8437E42 for ; Fri, 16 Apr 2004 07:00:54 +0200 (CEST) Received: (qmail 54725 invoked by uid 1001); 16 Apr 2004 05:00:53 -0000 Date: Fri, 16 Apr 2004 07:00:53 +0200 From: Erik Trulsson To: JJB Message-ID: <20040416050053.GA52342@falcon.midgard.homeip.net> Mail-Followup-To: JJB , Greg 'groggy' Lehey , "freebsd-questions@FreeBSD. ORG" References: <20040416035802.GM24048@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: Greg 'groggy' Lehey cc: "freebsd-questions@FreeBSD. ORG" Subject: Re: timezone command X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Apr 2004 05:00:57 -0000 On Fri, Apr 16, 2004 at 12:28:58AM -0400, JJB wrote: > I know how to set timezone, date and time. > > I am looking for command to display on the console screen the > systems timezone in this kind of format "-00:00" > > Is there such an command or some way to get this info? > > In an perl script I tried $timezone= $ENV{TZ} and I did not get > 00:00 format which I was looking for. Try 'date +%z' to get the timezone in the format "+0200". Not exactly what you asked for, but almost. -- Erik Trulsson ertr1013@student.uu.se