Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jul 1997 20:28:05 +0100
From:      Brian Somers <brian@awfulhak.org>
To:        dk+@ua.net
Cc:        brian@awfulhak.org (Brian Somers), freebsd-hackers@FreeBSD.ORG
Subject:   Re: date(1) 
Message-ID:  <199707291928.UAA20404@awfulhak.org>
In-Reply-To: Your message of "Tue, 29 Jul 1997 01:52:00 PDT." <199707290852.BAA13807@dog.farm.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> In article <199707290356.EAA22036@awfulhak.org> you wrote:
> > > > Yep.  I think I'll fix the usage message too - shouldn't it be:
> > > > 
> > > >   [[yy[mm[dd[hh]]]]mm[.ss]]
> 
> 	It should become
> 
> 	[[[cc]yy[mm[dd[hh]]]]mm[.ss]]
> 
> 	or we are screwed in 866 days from now.
> 
> > > > I must say, this format beats the mmddhhmmyy format in SYSV !
> 
>      /usr/bin/date [-u] [[mmdd]HHMM | mmddHHMM[cc]yy][.SS]
> 
> (quote from Solaris 2.5.1 manpage)

Hmm, this says that the following are ok (the [mmdd] bit is 
extraneous too):

  date HHMM
  date mmddHHMM
  date mmddHHMMyy
  date mmddHHMMccyy
  date .SS
  date HHMM.SS
  date mmddHHMM.SS
  date mmddHHMMyy.SS
  date mmddHHMMccyy.SS

If this usage message reflects the behaviour of date(1) on Solaris, 
I'd be surprised :-I

> --
> 	I have BSD, but SYSV has me.
> 		-- heared from Igor Uwkin (uwka@big.Sun.nsk.SU)

-- 
Brian <brian@awfulhak.org>, <brian@freebsd.org>
      <http://www.awfulhak.org>;
Don't _EVER_ lose your sense of humour....





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707291928.UAA20404>