search for: holidaycheck

Displaying 2 results from an estimated 2 matches for "holidaycheck".

2009 Dec 08
0
Holiday Gift Perl Script for US Holiday Dummy Regressors
...,HLY-NewYear,HLY-MLK,HLY-PRES,HLY-MEMORIAL,HLY-J4,HLY-LABOR,HLY-COLUMBUS,HLY-VETS,HLY-THANKS,HLY-XMAS,HLY-ELECT,HLY-PATRIOT,EOM\n"; $baseDate=$startDate; if ($scope eq "d"){ while(Date_Cmp($baseDate,$endDate)<0) { print UnixDate($baseDate,"%m/%d/%Y"), ","; if(holidayCheck($baseDate) eq "New Year's Day"){print "1,"} else {print "0,"}; if(holidayCheck($baseDate) eq "Martin Luther King, Jr. Day"){print "1,"} else {print "0,"}; if(holidayCheck($baseDate) eq "Presidents' Day"){print "1,&qu...
2009 Dec 08
0
Opps Correct Version of Holiday Regressor Perl Script
...ar,HLY-MLK,HLY-PRES,HLY-MEMORIAL,HLY-J4,HLY-LABOR,HLY-COLUMBUS,HLY-VETS,HLY-THANKS,HLY-XMA S,HLY-ELECT,HLY-PATRIOT,EOM\n"; $baseDate=$startDate; if ($scope eq "d"){ while(Date_Cmp($baseDate,$endDate)<0) { print OUTFILE UnixDate($baseDate,"%m/%d/%Y"), ","; if(holidayCheck($baseDate) eq "New Year's Day"){print OUTFILE "1,"} else {print OUTFILE "0,"}; if(holidayCheck($baseDate) eq "Martin Luther King, Jr. Day"){print OUTFILE "1,"} else {print OUTFILE "0,"}; if(holidayCheck($baseDate) eq "Presidents&...