LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2007, 02:18 PM   #1
JackieBlue
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Rep: Reputation: 0
Smile Using zdump to verify timezone data


Hi. I need to verify the timezone data on a remote machine. Can anyone tell me the command using zdump?
 
Old 11-16-2007, 04:04 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
On remote machine:
zdump -v /etc/localtime |grep 2007

That will show you start/stop for Daylight Saving Time for 2007.

Typically /etc/localtime should be linked to or a copy of one of the zonefiles in /usr/share/zoneinfo (or its subdirectories).

e.g. My /etc/localtime on one server is a copy of /usr/share/zoneinfo/America/New_York because I'm in the US Eastern Time zone like New York.

You can also run zdump against those files e.g.
zdump -v /usr/share/zoneinfo/America/New_York |grep 2007
zdump -v /usr/share/zoneinfo/America/Yellowknife |grep 2007
etc...

Also type "echo $TZ" to see if your timezone variable is set - if it is then the value you see for time is whatever that specifies rather than /etc/localtime. /etc/localtime is the system global default.
 
Old 11-19-2007, 10:34 AM   #3
JackieBlue
LQ Newbie
 
Registered: Nov 2007
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks very much! Exactly what I wanted.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
k3b can't verify data DVD! IsaacKuo Linux - Software 12 05-21-2008 07:40 PM
timezone problem Mathsniper Linux - Newbie 9 06-08-2005 01:55 PM
Timezone All Over The World Xa! General 0 11-01-2004 10:41 AM
machine timezone sopiaz57 Linux - General 9 11-18-2003 03:09 PM
Timezone Again rch LQ Suggestions & Feedback 5 05-20-2003 12:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration