From: Junaidi Sapari (Junaidi@TTSH.COM.SG)
Date: Wed Jan 14 2004 - 05:46:26 EST
Yes that's the problem, my 4.3.3 doesn't have the "-a" option.
# date -?
date: Not a recognized flag: ?
Usage: date [-n][-u] [mmddHHMM[[cc]yy]] [+"Field Descriptors"]
Usage: date [-n][-u] [mmddHHMM[.SSyy]] [+"Field Descriptors"]
# date -a -30
date: Not a recognized flag: a
Usage: date [-n][-u] [mmddHHMM[[cc]yy]] [+"Field Descriptors"]
Usage: date [-n][-u] [mmddHHMM[.SSyy]] [+"Field Descriptors"]
Is it not doable in aix 4.3.3?
The best i can get is adjust a minute behind.
# date
Wed Jan 14 18:29:00 TAIST 2004
# date 0114182804
Wed Jan 14 18:28:01 TAIST 2004
# date
Wed Jan 14 18:28:03 TAIST 2004
--Junaidi
"Green, Simon" <Simon.Green@EU.ALTRIA.COM> on 01/14/2004 06:21:50 PM
Please respond to IBM AIX Discussion List <aix-l@Princeton.EDU>
To: aix-l@Princeton.EDU
cc: (bcc: Junaidi/ISD/TTSH)
Subject: Re: Adjust time by 30 seconds
There's nothing in the man pages about the "-a" flag, but if you check the
command usage, (do something like "date -?") it shows -a as an option. No
explanation, but it looks like it's for adjusting the date backwards or
forwards by a number of seconds.
Usage: date [-n][-u] [mmddHHMM[[cc]yy]] [+Field Descriptors]
Usage: date [-n][-u] [mmddHHMM[.SSyy]] [+Field Descriptors]
Usage: date [-a] [[+|-]sss.fff]
So maybe "date -a -30"
That doesn't appear to be an option on my 4.3.3 systems: only on 5.1.
-- Simon Green Altria ITSC Europe Ltd AIX-L Archive at https://new-lists.princeton.edu/listserv/aix-l.html New to AIX? http://publib-b.boulder.ibm.com/redbooks.nsf/portals/UNIX N.B. Unsolicited email from vendors will not be appreciated. Please post all follow-ups to the list. > -----Original Message----- > From: Junaidi Sapari [mailto:Junaidi@TTSH.COM.SG] > Sent: 14 January 2004 07:34 > To: aix-l@Princeton.EDU > Subject: Adjust time by 30 seconds > > > Hello ppl, > I am trying to set my aix4.3 time behind by 30seconds. > In linux i can do a `date -s 14:00:00` if the current date is 14:00:30 > I saw a pseries command reference about adjusting time in > seconds by using the > "-a" flag. > I don't seem to have that flag available in aix4.3. Can > anyone help how can i > adjust the time by 30seconds behind. > Also if you guys can verify if there is a "-a" flag.
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:30 EDT