[lug] Perl days/dates

Atkinson, Chip CAtkinson at Circadence.com
Tue Nov 14 17:13:49 MST 2000


Yes, this returns 6, Saturday.  In my script, the value returned is 1 !

> -----Original Message-----
> From: Sean Reifschneider [mailto:jafo at tummy.com]
> Sent: Tuesday, November 14, 2000 5:03 PM
> To: lug at lug.boulder.co.us
> Subject: Re: [lug] Perl days/dates
> 
> 
> On Tue, Nov 14, 2000 at 04:55:40PM -0700, Atkinson, Chip wrote:
> >I'm writing a perl script to figure out the day of the week 
> based on a given
> >date.  The numeric value for the day of the week seems 
> rather odd in that
> 
> Try:  date +%w --date=2000-11-04
> 
> ;-)
> 
> Sean
> -- 
>  Hell hath no fury, like a file-system scorned.  -- Sean 
> Reifschneider, 1998
> Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
> tummy.com - Linux Consulting since 1995. Qmail, KRUD, 
> Firewalls, Python
> 
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> 




More information about the LUG mailing list