Re: Adjust time by 30 seconds

From: Junaidi Sapari (Junaidi@TTSH.COM.SG)
Date: Wed Jan 14 2004 - 21:36:22 EST


Thanks Bill, it works!

Bill Thompson <bill.thompson@GOODYEAR.COM> on 01/14/2004 07:53:58 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

Junaidi,

While there is no way to incrementally set the time in 4.3.3 you can
definitely set it to the second. The second usage field shows you how to do
it.

Say the current date/time is "Wed Jan 14 09:30:45 EST 2004" and you want to
set the time back 30 seconds. Simply use date in the following fashion:

date 01140930.1504

This will set the time back to "09:30:15" while keeping the date of "Jan 14
2004"

HT
Bill Thompson
Sr UNIX Systems Administrator
The Goodyear Tire & Rubber Co.

Contains Confidential and/or Proprietary Information
May Not Be Copied or Disseminated Without Express Consent of The Goodyear
Tire & Rubber Company.

AIX-L Archives: http://marc.theaimsgroup.com/?l=aix-l&r=1&w=2

----- Original Message -----
From: "Junaidi Sapari" <Junaidi@TTSH.COM.SG>
Newsgroups: bit.listserv.aix-l
To: <aix-l@Princeton.EDU>
Sent: Wednesday, January 14, 2004 5:46 AM
Subject: Re: Adjust time by 30 seconds

> 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