Displaying 2 results from an estimated 2 matches for "datecalc".
2009 Dec 08
0
Holiday Gift Perl Script for US Holiday Dummy Regressors
..."} else {print "0,"};
if(holidayCheck($baseDate) eq "U.S. Patriot Day Unofficial
Observation"){print "1,"} else {print "0,"};
if(holidayCheck($baseDate) eq "EOM"){print "1"} else {print "0"};
print "\n";
$baseDate=DateCalc($baseDate,"+1 day");
}
} # END IF D
if($scope eq "w") {
while(Date_Cmp($baseDate,DateCalc($endDate,"+7 days"))<0)
{
print UnixDate($baseDate,"%m/%d/%Y"), ",";
if(
(holidayCheck(DateCalc($baseDate,"+0 days")) eq "New Year's...
2009 Dec 08
0
Opps Correct Version of Holiday Regressor Perl Script
...olidayCheck($baseDate) eq "U.S. Patriot Day Unofficial
Observation"){print OUTFILE "1,"} else {print
OUTFILE "0,"};
if(holidayCheck($baseDate) eq "EOM"){print OUTFILE "1"} else {print OUTFILE
"0"};
print OUTFILE "\n";
$baseDate=DateCalc($baseDate,"+1 day");
}
} # END IF D
if($scope eq "w") {
while(Date_Cmp($baseDate,DateCalc($endDate,"+7 days"))<0)
{
print OUTFILE UnixDate($baseDate,"%m/%d/%Y"), ",";
if(
(holidayCheck(DateCalc($baseDate,"+0 days")) eq "New Ye...