Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Apr 2004 07:00:53 +0200
From:      Erik Trulsson <ertr1013@student.uu.se>
To:        JJB <Barbish3@adelphia.net>
Cc:        "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG>
Subject:   Re: timezone command
Message-ID:  <20040416050053.GA52342@falcon.midgard.homeip.net>
In-Reply-To: <MIEPLLIBMLEEABPDBIEGGEAIFMAA.Barbish3@adelphia.net>
References:  <20040416035802.GM24048@wantadilla.lemis.com> <MIEPLLIBMLEEABPDBIEGGEAIFMAA.Barbish3@adelphia.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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.


-- 
<Insert your favourite quote here.>
Erik Trulsson
ertr1013@student.uu.se



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