The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Change of date format svenkatareddy Shell Programming and Scripting 2 05-22-2008 11:58 PM
Move A File With Same Date,don't Change The Desitination Dir Date jee.ku2 UNIX for Dummies Questions & Answers 1 01-09-2008 10:42 AM
Change date format ust UNIX for Advanced & Expert Users 4 12-19-2007 02:17 PM
Change System Date Ricole AIX 1 07-26-2006 07:29 PM
Change new filename with date ?? sabercats Shell Programming and Scripting 9 02-13-2006 02:12 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 12-19-2007
Registered User
 

Join Date: Feb 2007
Location: india,mumbai
Posts: 82
Question change country in date command

Currently date command is showing following output

Code:
(ibm)jhamay:/home/jhamay->date
Wed Dec 19 14:19:25 PAKST 2007
I want to change PAKST to IST. I have searched through man pages but didn't find any relevant things.could you all please help me out.
Reply With Quote
Forum Sponsor
  #2  
Old 12-19-2007
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
You have to change the timezone, which is stored in the variable TZ.

export TZ=IST[....]

Alas, i do not know of a predefined timezone called "IST", so you will have to contruct your own and call that "IST".

I hope this helps.

bakunin

Last edited by bakunin; 12-19-2007 at 05:10 AM.
Reply With Quote
  #3  
Old 12-19-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
What OS (type/version of unix or AIX) are you using?

Code:
export TZ=ISTIMDT-5:30
Would be for the time in Mumbai.

If you want this to be system-wide (for all users) you will have to change something depending on your OS, probably put the TZ statement above into /etc/TIMEZONE
Reply With Quote
  #4  
Old 12-19-2007
Bughunter Extraordinaire
 

Join Date: May 2005
Location: In the leftmost byte of /dev/kmem
Posts: 1,262
Quote:
Originally Posted by jim mcnamara View Post
What OS (type/version of unix or AIX) are you using?
Sorry to interrupt you, Jim, but this is the AIX forum and in AIX the version/release is - for this problem - irrelevant. The procedure hasn't changed since at least version 3.2.5 (which was back in the early nineties).

Quote:
If you want this to be system-wide (for all users) you will have to change something depending on your OS, probably put the TZ statement above into /etc/TIMEZONE
In AIX you have to put it into /etc/environment or use SMITty, which does that for you.

You might want to read this post for an explanation of how to contruct your timezone variable.
Reply With Quote
  #5  
Old 12-19-2007
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 4,298
my bad, but the recent versions of AIX are supposedly POSIXly-compliant, and that construction of a TZ variable is POSIX.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:13 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0