Date: Wed, 30 Jul 1997 01:32:59 -0400 (EDT) From: Tim Vanderhoek <tim@x22> To: grog@FreeBSD.ORG Cc: Brian Somers <brian@awfulhak.org>, dk+@ua.net, freebsd-hackers@FreeBSD.ORG Subject: Re: date(1) Message-ID: <Pine.BSF.3.96.970730012416.202A-100000@x22> In-Reply-To: <199707300433.OAA00328@freebie.lemis.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Jul 1997 grog@FreeBSD.ORG wrote:
> >>>>>> [yy[mm[dd[hh]]]]mm[.ss]]
At risk of missing the obvious, why can't the above simply be
extended to
[cc[yy[mm[dd[hh]]]]]mm[.ss]]
? This format strikes me as being right since any usually, if the
date is off by a large amount (eg. centuries), the year, month, day,
hour, and minute will also be off. However, the date being off by a
minute or two, while the hour, day, month, year, and century are
correct is not unusual.
This seems to avoid the below monstrosities.
> >> [[[cc]yy[mm[dd[hh]]]]mm[.ss]]
> >>> cc[yy[mm[dd[hh]]]]]mm[.ss]]
The first is hopelessly ambigious and the 2nd is hopelessly
annoying.
--
tIM...HOEk
OPTIMIZATION: the process of using many one-letter variables names
hoping that the resultant code will run faster.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970730012416.202A-100000>
