[thelist] public holiday/weekend dates in Perl
Richard Bennett
richard.bennett at skynet.be
Thu Jul 17 16:30:27 CDT 2003
Hi,
I need to check a load of dates, to see whether they are on a (Belgian)
public holiday, or a weekend.
I'm using Perl for this.
I think date::calc should be able to do this, but the examples I found just
print out a full calendar.
Does anyone know an example of a function that will return true if the date
I pass it is on a weekend or public holiday?
if( isHolidayOrWeekend("28/05/2003") ){
print "28/05/2003 is a day off";
}else{
print "28/05/2003 is a working day";
}
thanks for any tips,
Richard.
More information about the thelist
mailing list