Re: getting date from localtime

2002-06-25 Thread drieux
On Tuesday, June 25, 2002, at 07:01 , Johnson, Shaunn wrote: > ($mday, $mon, $year) = (localtime())[3 .. 5]; have you thought about the off set values of $wday? my ($mday, $mon, $year,$wday) = (localtime())[3 .. 6]; $year += 1900; my $k_mon = $mon + 1; my @day_oh_week = qw/Sun Mon Tues Wens

RE: getting date from localtime

2002-06-25 Thread Shishir K. Singh
>Howdy: >I'm trying to do the following (which may have >been created already) in perl: >* create two variables >var1 = this will be sunday of current week always >var2 = this will be saturday of current week always >I'm not sure how I can use 'localtime' as a tool >for identifying var1 and

RE: getting date from localtime

2002-06-25 Thread Shishir K. Singh
>Howdy: >I'm trying to do the following (which may have >been created already) in perl: >* create two variables >var1 = this will be sunday of current week always >var2 = this will be saturday of current week always >I'm not sure how I can use 'localtime' as a tool >for identifying var1 and va