From owner-freebsd-hackers Fri Aug 8 18:12:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA28064 for hackers-outgoing; Fri, 8 Aug 1997 18:12:49 -0700 (PDT) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA28059 for ; Fri, 8 Aug 1997 18:12:45 -0700 (PDT) Received: (from karpen@localhost) by ocean.campus.luth.se (8.8.5/8.8.5) id DAA07793; Sat, 9 Aug 1997 03:23:55 +0200 (CEST) From: Mikael Karpberg Message-Id: <199708090123.DAA07793@ocean.campus.luth.se> Subject: Re: date(1) In-Reply-To: <199708010327.EAA05954@awfulhak.org> from Brian Somers at "Aug 1, 97 04:27:47 am" To: brian@awfulhak.org (Brian Somers) Date: Sat, 9 Aug 1997 03:23:55 +0200 (CEST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk [Been away for over a week, so I'm sorry to jump in late here] According to Brian Somers: > > + [[cc[yy[mm[dd[hh]]]]]mm[.ss]] Note that this says this: If you give minutes you may give seconds, and you may also add centuary. If you add centuary you may add year. etc. Which makes hhmm.ss illegal. [... lots of babbling about date and its format...] > > 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. YES! Finally! Is this the "final word" here? I've been thinking about writing a PR for date.1 because if says "[[yy[mm[dd[hh]]]]mm[.ss]]". It most definitely should be "[[[[[yy]mm]dd]HH]MM[.SS]]". With [cc] added when date actually handles that, ofcourse. /Mikael