![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace. |
|
|
||||
| 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 |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Currently date command is showing following output
Code:
(ibm)jhamay:/home/jhamay->date Wed Dec 19 14:19:25 PAKST 2007 |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
What OS (type/version of unix or AIX) are you using?
Code:
export TZ=ISTIMDT-5:30 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 |
|
#4
|
|||
|
|||
|
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:
You might want to read this post for an explanation of how to contruct your timezone variable. |
|
#5
|
|||
|
|||
|
my bad, but the recent versions of AIX are supposedly POSIXly-compliant, and that construction of a TZ variable is POSIX.
|
|||
| Google The UNIX and Linux Forums |