CMS MADE SIMPLE FORGE

Holidays

 

[#5911] Canadian Holidays

avatar
Created By: Noel McGran (nullig)
Date Submitted: 2011-01-03 00:01

Assigned To:
Resolution: None
State: Open
Summary:
Canadian Holidays
Detailed Description:
			case 'en_CA':
				$holidays[$params['year'].'-01-01'] = 'New Years Day';
$holidays[date('Y-m-d',
mktime(0,0,0,$eastermonth,$easterday-2,$params['year']))] = 'Good Friday';
$holidays[date('Y-m-d',
mktime(0,0,0,$eastermonth,$easterday+1,$params['year']))] = 'Easter Monday';
$holidays[$params['year'].'-05-'.((7-Date('w',mktime
(0,0,0,5,31,$params['year'])))%7+18)] = 'Victoria Day';
$holidays[$params['year'].'-06-24'] = 'Saint-Jean-Baptiste Day (Quebec
only)';
				$holidays[$params['year'].'-07-01'] = 'Canada Day';
$holidays[$params['year'].'-08-'.((8-Date('w',mktime
(0,0,0,8,1,$params['year'])))%7+1)] = 'Civic Holiday (except Quebec)';
$holidays[$params['year'].'-09-'.((8-Date('w',mktime
(0,0,0,9,1,$params['year'])))%7+1)] = 'Labour Day';
$holidays[$params['year'].'-10-'.((8-Date('w',mktime
(0,0,0,10,1,$params['year'])))%7+8)] = 'Thanksgiving';
				$holidays[$params['year'].'-11-11'] = 'Remembrance Day';
				$holidays[$params['year'].'-12-25'] = 'Christmas';
				$holidays[$params['year'].'-12-26'] = 'Boxing Day';
				break;

History