Solved

How do Timezones work w/ Linux?

Posted on 1998-07-31
7
215 Views
Last Modified: 2013-12-06
Hi ,
I am using Linux at work. I need to figure out how to change timezones etc... I'd also like a complete explanation of Date, how it works and so on. I have researched and found little explanation. So if someone out there has this knowledge, I would like it, I might be over or underpricing this, it seems so simple and yet I couldn't find the answer.

Red Hat 5.0 Is what we're using.
0
Comment
Question by:M0nkeyB0y
  • 4
  • 2
7 Comments
 

Expert Comment

by:chrismith
Comment Utility
You need to set the TZ environment variable to the appropriate country (eg GB for england). The available choices are in /usr/share/zoneinfo (RH 5.1) or possibly /usr/lib/zoneinfo on oler systems. One source of info is the man pages for 'tzset' and 'tzfile'

Hope this helps.


0
 

Author Comment

by:M0nkeyB0y
Comment Utility
hey,yeah, you pointed me in the right direction.... but could you tell me like how to change from central to eastern or pacific time....? I'm rather new to linux and unix in general and I guess I'm having trouble understanding the Man pages.... I will award the points, I just want a simple "sock puppet" explanation.
0
 

Author Comment

by:M0nkeyB0y
Comment Utility
I'm sorry I huess I wasn't succinct in my Question.... I apologize all i need is to  know how to set the timezone.... I'm reading those man pages now, but it really isn't helping
for example I am sending a box to LA and I want to change from central to pacific time.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:M0nkeyB0y
Comment Utility
I'm sorry I huess I wasn't succinct in my Question.... I apologize all i need is to  know how to set the timezone.... I'm reading those man pages now, but it really isn't helping
for example I am sending a box to LA and I want to change from central to pacific time.
0
 

Accepted Solution

by:
chrismith earned 150 total points
Comment Utility
Ok, look at the link /etc/localtime it will point to something like /usr/share/zoneinfo/US/Central change it to /usr/share/zoneinfo/US/Pacific and hey presto - all will be well!


0
 
LVL 3

Expert Comment

by:marcelofr
Comment Utility
use setup -> timeconfig and DON'T tag hardware time to GMT...
0
 

Author Comment

by:M0nkeyB0y
Comment Utility
hey thats just what I needed!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now