Solved

How do Timezones work w/ Linux?

Posted on 1998-07-31
7
246 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
ID: 1637680
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
ID: 1637681
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
ID: 1637682
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
The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

 

Author Comment

by:M0nkeyB0y
ID: 1637683
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
ID: 1637684
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
ID: 1637685
use setup -> timeconfig and DON'T tag hardware time to GMT...
0
 

Author Comment

by:M0nkeyB0y
ID: 1637686
hey thats just what I needed!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to make a Bash alias that takes parameters 5 75
Red Hat 7 Linux on Azure cannot run a command as root 22 54
ifconfig 4 72
Unix Help with:  mailx -s 17 21
The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

830 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