timezone command

Erik Trulsson ertr1013 at student.uu.se
Thu Apr 15 22:00:57 PDT 2004


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 at student.uu.se


More information about the freebsd-questions mailing list