Solved

Seting/Changing Time Zone Information Programaticaly in Linux

Posted on 2000-04-04
9
285 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
Independent Software Vendors: 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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
conditional code and condition difference 9 87
sum13 challenge 24 149
zeroFront challenge 7 135
Thin secure Windows 10 5 116
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.

734 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