Re: get timezone in a script?
- From: Igmar Palsenberg <igmar@xxxxxxxxxxxxxxxx>
- Date: Fri, 09 Jun 2006 15:02:24 +0200
Michael Tosch wrote:
In Solaris and HPUX it is environment variable TZ.
In Linux TZ exists, but is often not set.
There is a binary file /etc/localtime,
but how to get the timezone string out of it?
$s = `date +%Z` should do it.
Igmar
.
- Follow-Ups:
- Re: get timezone in a script?
- From: Michael Tosch
- Re: get timezone in a script?
- References:
- get timezone in a script?
- From: Michael Tosch
- get timezone in a script?
- Prev by Date: Re: log of boot process
- Next by Date: Re: get timezone in a script?
- Previous by thread: get timezone in a script?
- Next by thread: Re: get timezone in a script?
- Index(es):
Relevant Pages
|