RE: calculate dates / regex

2002-05-29 Thread Felix Geerinckx
on Wed, 29 May 2002 12:05:45 GMT, [EMAIL PROTECTED] (Sven Bentlage) wrote: > Encountered another problem: > [...] Why are you posting the exact same question as yesterday? Why didn't you take John's advice into account? Did you miss his reply? -- felix -- To unsubscribe, e-mail: [EMAIL PROT

RE: calculate dates / regex

2002-05-29 Thread Sven Bentlage
Encountered another problem: I'm trying to use a calculated date value in a regex. It only works with values which are NOT calculated. my ($dc, $mc, $yc) = (localtime(time))[3,4,5]; my $date_now = sprintf("%02d-%02d-%02d", $dc, $mc+1, $yc-100);

Re: calculate dates / regex

2002-05-28 Thread John W. Krahn
Sven Bentlage wrote: > > Encountered another problem: > > I'm trying to use a calculated date value in a regex. It only works with > values which are NOT calculated. > > my ($dc, $mc, $yc) = (localtime(time))[3,4,5]; > my $date_now = sprintf("%02d-%02d-%02d", $dc, $mc+1, $yc-100);

Re: calculate dates / regex

2002-05-28 Thread Sven Bentlage
Encountered another problem: I'm trying to use a calculated date value in a regex. It only works with values which are NOT calculated. my ($dc, $mc, $yc) = (localtime(time))[3,4,5]; my $date_now = sprintf("%02d-%02d-%02d", $dc, $mc+1, $yc-100);

Re: calculate dates

2002-05-28 Thread John W. Krahn
Drieux wrote: > > On Tuesday, May 28, 2002, at 09:25 , Sven Bentlage wrote: > > > I'm trying to get all the date values for the week (7days) ahead of a > > specified date. > > To get the current date I use : > > my ($d, $m, $y) = (localtime)[3,4,5]; > > my $date = sprintf("%02d-%02d-%02d

Re: calculate dates

2002-05-28 Thread Felix Geerinckx
on Tue, 28 May 2002 17:53:27 GMT, Drieux wrote: > use constant SECONDS_PER_DAY (24*60*60); > [...] > you may want to do the perldoc on constant - since this > will help you with more on how to think about writing > self documenting code You may want to take a look yourself, since yo

Re: calculate dates

2002-05-28 Thread drieux
On Tuesday, May 28, 2002, at 09:25 , Sven Bentlage wrote: > Hi ! > I'm trying to get all the date values for the week (7days) ahead of a > specified date. > To get the current date I use : > my ($d, $m, $y) = (localtime)[3,4,5]; >