Finding timezone information


 
Thread Tools Search this Thread
Top Forums Programming Finding timezone information
# 1  
Old 11-25-2005
Finding timezone information

how to extract current/existing timezone information ??
# 2  
Old 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/
# 3  
Old 11-25-2005
What file is used varied from system to system and this is the c programming forum. The various date/time routines call tzset() to get the timezone info and you can call it directly. Then, the external variables timezone, daylight, and tzname should contain the timezone info. See "man tzset".
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Finding disk information

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

2. AIX

Finding cpu information on vio client

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

3. Shell Programming and Scripting

Linux OS timezone information file, question.

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

4. Linux

finding core information in redhat 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

5. AIX

Want API for finding HDA information

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

6. UNIX for Advanced & Expert Users

Timezone

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

7. UNIX for Dummies Questions & Answers

finding information about a server

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

8. UNIX for Dummies Questions & Answers

timezone

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

9. UNIX for Dummies Questions & Answers

Timezone

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

10. UNIX for Dummies Questions & Answers

Timezone

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
Login or Register to Ask a Question