11-25-2005
i am not sure whether this is ur requirement
echo $TZ
would retrieve current timing zone
else if you are specific abt zoneinformation
check in
/usr/share/lib/zoneinfo/
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello again,
under hp-ux i have a file /etc/TIMEZONE. here is definied which timezone i am.
i dont know who reads this file to set after reading the timezone under /usr/lib/tztab.
my 2 questions, who reads the file /etc/TIMEZONE ( which service ) and do i need in the first line to set my... (6 Replies)
Discussion started by: ortsvorsteher
6 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I got an question about changing timezone thrue command line on a SunOS Release 4.1.2 without restarting the computer.
Now it's set on WET and I want to set the timezone to CET (GMT +1)
Plz somebody help me.
Regards
Novisern:confused: (5 Replies)
Discussion started by: Novisern
5 Replies
3. UNIX for Dummies Questions & Answers
Hi,
i am searching to change the timezone on a HP-UX11 system. Since last weekend the summertime started i am not able to change the time to the new time, every day the time changes back to wintertime. I think the problem is that the server is on the wrong timezone. Can someone help me please?... (1 Reply)
Discussion started by: eddyvdv
1 Replies
4. UNIX for Dummies Questions & Answers
hi
can i know how to find out basic information about a server
OS version, num of CPU, memory size, SI no.
i ran the comman below...
uname -a
SunOS statsfs07 5.8 Generic_117000-03 sun4u sparc SUNW,Ultra-4
from this how do i know which version is it in?
thanks (3 Replies)
Discussion started by: legato
3 Replies
5. UNIX for Advanced & Expert Users
HI ;
I got Solaris8 installed oon Sunfire V440 .I have TZ=GMT in /etc/TIMEZONE , but when i log in as root i see the date in GMT+1.
So i have every time to "set TZ=GMT ; export $TZ" .
How can i set the TZ=GMT at the startup defenitely.
Thanks
:) (7 Replies)
Discussion started by: oss
7 Replies
6. AIX
Hi all,
I am finding api for getting information about physical volumes such as device name, vendor, serial number etc.
And I want to do it in C.
:( :( please tell me any way out....
If your answer is use IOCTL, which i dont know how to use... (0 Replies)
Discussion started by: Anand Phatak
0 Replies
7. Linux
Hi,
I want to know how to find out no of cores in linux.
I have given the command more /proc/cpuinfo
NOw I want to know what is diffrence between cpu cores and core id?
How to find out exact no of cores?
Regards,
Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies
8. Shell Programming and Scripting
Hi everybody,
I have a task on my hands, the goal of the task is to overwrite the time zone information for the linux OS, I have searched and found that the this data is stored in the file /etc/localtime, the thing I want to ask about is the structure of the file as described in the tzfile manual... (3 Replies)
Discussion started by: modn3
3 Replies
9. AIX
Hi,
I am having single p series blade with Single Physcial CPU with dual core,
on that vio server is installed, I have created vio client allocate 0.9 each cpu , now when I am running prtconf command on vio client it is showing "2" no of processor,
My query using which command it will... (1 Reply)
Discussion started by: manoj.solaris
1 Replies
10. Red Hat
Hi,
I would like to know how to find out whether hard disk is local or mapped from storage,
on my server both hard disk are there,
Please guide me.
Regards,
Manoj (1 Reply)
Discussion started by: manoj.solaris
1 Replies
LEARN ABOUT MOJAVE
datetime::timezone::local::unix5.18
DateTime::TimeZone::Local::Unix(3) User Contributed Perl Documentation DateTime::TimeZone::Local::Unix(3)
NAME
DateTime::TimeZone::Local::Unix - Determine the local system's time zone on Unix
VERSION
version 1.63
SYNOPSIS
my $tz = DateTime::TimeZone->new( name => 'local' );
my $tz = DateTime::TimeZone::Local->TimeZone();
DESCRIPTION
This module provides methods for determining the local time zone on a Unix platform.
HOW THE TIME ZONE IS DETERMINED
This class tries the following methods of determining the local time zone:
o $ENV{TZ}
It checks $ENV{TZ} for a valid time zone name.
o /etc/localtime
If this file is a symlink to an Olson database time zone file (usually in /usr/share/zoneinfo) then it uses the target file's path name
to determine the time zone name. For example, if the path is /usr/share/zoneinfo/America/Chicago, the time zone is "America/Chicago".
Some systems just copy the relevant file to /etc/localtime instead of making a symlink. In this case, we look in /usr/share/zoneinfo
for a file that has the same size and content as /etc/localtime to determine the local time zone.
o /etc/timezone
If this file exists, it is read and its contents are used as a time zone name.
o /etc/TIMEZONE
If this file exists, it is opened and we look for a line starting like "TZ = ...". If this is found, it should indicate a time zone
name.
o /etc/sysconfig/clock
If this file exists, it is opened and we look for a line starting like "TIMEZONE = ..." or "ZONE = ...". If this is found, it should
indicate a time zone name.
o /etc/default/init
If this file exists, it is opened and we look for a line starting like "TZ=...". If this is found, it should indicate a time zone name.
AUTHOR
Dave Rolsky <autarch@urth.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Dave Rolsky.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.18.2 2013-10-28 DateTime::TimeZone::Local::Unix(3)