Re: Adjust time by 30 seconds

From: Green, Simon (Simon.Green@EU.ALTRIA.COM)
Date: Wed Jan 14 2004 - 05:21:50 EST


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