Solved

Seting/Changing Time Zone Information Programaticaly in Linux

Posted on 2000-04-04
9
272 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
  • 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
 

Author Comment

by:crisu
ID: 2684280
Adjusted points from 50 to 70
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
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

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.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
if loop error 4 77
Need Help INsttalling wget on Mavericks OS X 3 83
move a line in eclipse 3 60
SQUD PROXY SERVER, UNIX, SLL/HTTPS 5 50
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.

762 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

18 Experts available now in Live!

Get 1:1 Help Now