From owner-freebsd-hackers Thu Jul 31 20:33:35 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id UAA22134 for hackers-outgoing; Thu, 31 Jul 1997 20:33:35 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id UAA22119 for ; Thu, 31 Jul 1997 20:33:25 -0700 (PDT) Received: from awfulhak.org (dev.lan.awfulhak.org [10.0.1.5]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id EAA04444; Fri, 1 Aug 1997 04:27:48 +0100 (BST) Received: from dev.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.6/8.8.6) with ESMTP id EAA05954; Fri, 1 Aug 1997 04:27:47 +0100 (BST) Message-Id: <199708010327.EAA05954@awfulhak.org> X-Mailer: exmh version 2.0zeta 7/24/97 To: Greg Lehey cc: brian@awfulhak.org (Brian Somers), hackers@freebsd.org Subject: Re: date(1) In-reply-to: Your message of "Fri, 01 Aug 1997 12:30:29 +0930." <199708010300.MAA08376@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 01 Aug 1997 04:27:47 +0100 From: Brian Somers Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > + [[cc[yy[mm[dd[hh]]]]]mm[.ss]] > + > + this syntax can be expanded to: > + > + [[cc[yy[mm[dd]]]]mm[.ss]] > + [[cc[yy[mm]]]mm[.ss]] > + [[cc[yy]]mm[.ss]] > + [[cc]mm[.ss]] > + [mm[.ss]] > + [[cc[yy[mm[dd]]]]mm] > + [[cc[yy[mm]]]mm] > + [[cc[yy]]mm] > + [[cc]mm] > + > + So 'date 2001' must mean "set the date to century 20, year undefined, > + month, day, and hour undefined, minute 1. > + > + Most newcomers to UNIX hate date(1) because the date entry format is > + already too cryptic. This would just make it worse. There are some > + other alternatives for date entry--tar uses one, for example, though > + it may be GNU code. Why not base an implementation on one of those? > > In other words, yes, my mail macros screwed up the syntax, but they > didn't change much. > > > I'm sure we can all agree that this means the above usage (with the > > two wandering brackets included) is correct ? > > No, it's still wrong. Oops, let me just delete that "no no no" mail that I nearly sent *blush*. Of course it should be: [[[[[cc]yy]mm]dd]HH]MM[.SS] As we strip the brackets from the outside in, we get the right answer :-) Thanks. > Greg -- Brian , Don't _EVER_ lose your sense of humour....