Solved

Seting/Changing Time Zone Information Programaticaly in Linux

Posted on 2000-04-04
9
287 Views
Last Modified: 2013-12-26
I have to change TZ information under Linux.
I have to change the month, day and hour ...

I know where the files ar in the Linux system but I don't know how to change the information in them.

Tanks.
0
Comment
Question by:crisu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
9 Comments
 

Expert Comment

by:qiang8
ID: 2683553
Just change the ~/.cshrc file as below.

for example:

#setenv TZ US/Mountain
setenv TZ Taiwan

Hope this will help.
0
 

Expert Comment

by:qiang8
ID: 2683570
Just change the ~/.cshrc file as below.

for example:

#setenv TZ US/Mountain
setenv TZ Taiwan

Hope this will help.
0
 

Author Comment

by:crisu
ID: 2684258
Tanks for your answer.
I know how to do that.
The problem is to change the mont, day and hour for the first and second change of hour.
Something like this:
TZ=eet-02eest-03,M3.5.0/2,M9.5.0/2
TZ=eet-02eest-03,M3.5.0/2,M10.5.0/3
(this is an example from QNX)
If you notice I'v change the month and hour for the second hour modification.


0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:crisu
ID: 2684280
Adjusted points from 50 to 70
0
 
LVL 1

Expert Comment

by:Ted22
ID: 2686299
Take a look at the (date) command. I think it will do what you want. Then to set your hardware clock (setclock) makes it whatever the date command set it to. RH6.1
0
 

Author Comment

by:crisu
ID: 2686348
I have to change it not to see it ...

'%z'
     RFC-822 style numeric time zone (e.g., -0600 or +0100), or nothing
     if no time zone is determinable.  This value reflects the
     _current_ time zone.  It isn't changed by the `--date' option.

`%Z'
     time zone (e.g., EDT), or nothing if no timezone is determinable.
     Note that this value reflects the _current_ time zone.  It isn't
     changed by the `--date' option.
0
 
LVL 1

Expert Comment

by:Ted22
ID: 2687015
http://x35.deja.com/[ST_rn=ps]/getdoc.xp?AN=602676096.7&context=954945577.2104164361&hitnum=47
0
 
LVL 1

Accepted Solution

by:
Ted22 earned 70 total points
ID: 2689721
http://x35.deja.com/[ST_rn=ps]/getdoc.xp?AN=602676096.7&context=954945577.2104164361&hitnum=47
0
 
LVL 1

Expert Comment

by:Ted22
ID: 2689730
I don't know why this link doesn't copy,
try copying it to the address on your browser.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

691 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