Subject: Re: date feature request
To: George Georgalis <>
From: Steven M. Bellovin <>
List: netbsd-users
Date: 11/16/2006 16:56:20
On Thu, 16 Nov 2006 15:26:54 -0500, "George Georgalis" <>

> On Wed, Nov 15, 2006 at 01:39:30PM -0500, Christos Zoulas wrote:
> >On Nov 15, 12:24pm, ("Steven M. Bellovin") wrote:
> >-- Subject: Re: date feature request
> >
> >| The main reason I wrote it is that back then, most computers didn't have
> >| TOD clocks, and I wanted to make it easy for people to set the time when
> >| rebooting...
> >
> >The reason I added it is because it makes date math in scripts easy, like:
> >
> >    date -d 'yesterday' +%Y%m%d
> >or
> >    date -d 'last friday' +%Y%m%d
> >
> >I used to install gnu date to be able to do that, but now it is not needed
> >anymore :-)
> Thanks Christos. In response to your post I tried it and found
> jdarrow's commit to add -j support instead :-} now I see your
> commit is in there as well, great, both patches much appreciated,
> will try -d soon.
> but I am wondering why Mr Bellovin's file is here
> /usr/src/gnu/dist/cvs/lib/getdate.y
> the license in the header is clearly not gnu so it conflicts with
> hier(7)---should it be moved?

CVS used it; the developers had every right to do so.  That file is clearly
not covered by the GPL, even though it's in a tree that is generally
covered.  That's why there's a a separate header comment.

		--Steven M. Bellovin,