[lug] Creating date variables in bash
rm at fabula.de
rm at fabula.de
Tue Oct 12 15:50:14 MDT 2004
On Tue, Oct 12, 2004 at 03:40:45PM -0600, Matt Thompson wrote:
> On Tue, 2004-10-12 at 14:26, rm at fabula.de wrote:
> > On Tue, Oct 12, 2004 at 02:25:39PM -0600, Bill Thoen wrote:
> > > On Tue, 2004-10-12 at 12:57, Nate Duehr wrote:
> > >
> > > > I think I remember it understands the word "fortnight" too. ;-)
> > >
> > > Amazing. But it doesn't understand "last century", "next epoch" or times
> > > of the day like Matins, Lauds, Prime, Terce, Sext, Nones, Vespers, and
> > > Compline. Guess you can't have everything, but I'm impressed they've done
> > > as much work on dates as they have!
> >
> > Err, but it's _GNU_, you have the source! Go add that stuff to the
> > code and receive eternal fame :-)
> >
> > Oh, i haven't heard "Matins" for quite a while. Thanks.
> >
> > Ralf Mattes
>
> Well, there it all is in coreutils-X.X.X/lib/getdate.?, but do you alter
> the .c or .y file.
The yacc file, off course. You really nead to extend the grammar of your
date/time expressions.
> And why am I really thinking of doing this? I'm a F95 man. Maybe the
> sheer scale of units impresses me and I think date is being shorted.
Yes, down to 2 chars in some (pre-2000) Cobol code :-)
RalfD
> Matt
> --
> Learning just means you were wrong and they were right. - Aram
> Matt Thompson -- http://ucsub.colorado.edu/~thompsma/
> 440 UCB, Boulder, CO 80309-0440
> JILA A510, 303-492-4662
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
More information about the LUG
mailing list