Any tips on calculating holidays? maybe someone has a GPL licensed package already available?

I see in the calendar functions I can get the easter date, and christmas is a fixed date.

There is also a function to determine the current date on the Jewish calendar, so I can simply cross-check a list to check dates and display.

Islamic dates/holidays? Any ideas?

    i can offer this from my calendar script:

        $easter = date("n j",easter_date($year)); 
    	$presidents_day = nth_day_of_month(3, 'Monday', 2, $year);
    	$daylight_savings = nth_day_of_month(2, 'Sunday', 3, $year);
    
    //HOLIDAY ARRAY 
    $holidays = array(
    "1 1"  => 
    array( "NAME"=>"NEW YEARS DAY", "IMAGE" => "newyears.gif"),
    "1 15" => 
    array( "NAME"=>"MARTIN LUTHER KING DAY", "IMAGE" => "mlk_day.gif"),
    "1 20" => 
    array( "NAME"=>"INAUGURATION DAY", "IMAGE" => "..."),
    "2 2"  => 
    array( "NAME"=>"GROUNDHOG DAY", "IMAGE" => "groundhog.gif"),
    "2 12" => 
    array( "NAME"=>"LINCOLNS BIRTHDAY", "IMAGE" => "presidents.gif"),
    "2 14" => 
    array( "NAME"=>"VALENTINES DAY", "IMAGE" => "valentines.gif"),
    $presidents_day => 
    array( "NAME"=>"PRESIDENTS DAY", "IMAGE" => "presidents.gif"),
    "2 22" => 
    array( "NAME"=>"WASHINGTON'S BIRTHDAY", "IMAGE" => "..."),
    $daylight_savings => 
    array( "NAME"=>"DAYLIGHT SAVINGS", "IMAGE" => "..."),
    "3 17" => 
    array( "NAME"=>"ST PATRICKS DAY", "IMAGE" => "stpatrick.gif"),
    $easter=> 
    array( "NAME"=>"EASTER", "IMAGE" => "easter.gif"),	
    "4 1"  => 
    array( "NAME"=>"APRIL FOOLS", "IMAGE" => "..."),
    "4 15" => 
    array( "NAME"=>"TAX DAY", "IMAGE" => "taxes.gif"),
    "5 8"  => 
    array( "NAME"=>"MOTHERS DAY", "IMAGE" => "mothers.gif"),
    "5 30" => 
    array( "NAME"=>"MEMORIAL DAY", "IMAGE" => "veterans.gif"),	
    "6 14" => 
    array( "NAME"=>"FLAG DAY", "IMAGE" => "flagday.gif"),
    "6 19" => 
    array( "NAME"=>"FATHERS DAY", "IMAGE" => "fathers.gif"),
    "7 4"  => 
    array( "NAME"=>"INDEPENDANCE DAY", "IMAGE" => "4thjuly.gif"),
    "9 5"  => 
    array( "NAME"=>"LABOR DAY", "IMAGE" => "..."),
    "10 10"=> 
    array( "NAME"=>"COLUMBUS DAY", "IMAGE" => "columbus.gif"),
    "10 31"=> 
    array( "NAME"=>"HALLOWEEN", "IMAGE" => "halloween.gif"),
    "11 1" => 
    array( "NAME"=>"ELECTION DAY", "IMAGE" => "..."),
    "11 11"=> 
    array( "NAME"=>"VETERANS DAY", "IMAGE" => "veterans.gif"),
    "11 24"=> 
    array( "NAME"=>"THANKSGIVING", "IMAGE" => "thanks.gif"),
    "12 24"=> 
    array( "NAME"=>"CHRISTMAS EVE", "IMAGE" => "christmas.gif"),
    "12 25"=> 
    array( "NAME"=>"CHRISTMAS DAY", "IMAGE" => "christmas.gif"),
    "12 31"=> 
    array( "NAME"=>"NEW YEARS EVE", "IMAGE" => "newyears.gif"),			
    );
    

      What about converting to Islamic dates, like the calendar functions for Jewish dates?

        Write a Reply...