Re: get timezone in a script?
- From: Michael Tosch <eedmit@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 09 Jun 2006 16:07:40 +0200
Igmar Palsenberg wrote:
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
You are a genius - thanks!
--
Michael Tosch @ hp : com
.
- References:
- get timezone in a script?
- From: Michael Tosch
- Re: get timezone in a script?
- From: Igmar Palsenberg
- get timezone in a script?
- Prev by Date: Re: get timezone in a script?
- Next by Date: Re: Ubuntu - installing software (please help)
- Previous by thread: Re: get timezone in a script?
- Next by thread: Linux router really weird problem
- Index(es):