Warning: Invalid argument supplied for foreach() in /home/jihswbiz/public_html/t6.gwilt.org/refDox.php on line 212
Docs-DSTbrazil

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  DSTbrazil   Lines 167-183 (16 lines) file  determineDstState.php   Last mod: Thu 2021-06-10 13:36:58

function DSTbrazil $y )
        {
#-k     DST
#-      Return the appropriate DST rule for Brazil for the year

$DSTrules = Array (
                
'Rulea'  => 'third Sunday February',
                
'Ruleb'  => 'fourth Sunday February'
                        
);
        
$easter easter_date($y);
        
$carn $easter 46*SecsPerDay;
        
$a strtotime($DSTrules['Rulea'] . ' ' $y );
        
$b strtotime($DSTrules['Ruleb'] . ' ' $y );
        if ((
$a <= $carn)  &&  (($a+7*SecsPerDay) > $carn))     return $b;      # falls w/in carnaval
        
else                                                    return $a;
        }

?>