[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Seting/Changing Time Zone Information Programaticaly in Linux

Posted on 2000-04-04
9
Medium Priority
?
296 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 280 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

650 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