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

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  execDstRule   Lines 228-246 (18 lines) file  determineDstState.php   Last mod: Thu 2021-06-10 13:36:58

function execDstRule $r,$y=-9999 )
        {
#-k     DST
#-      Execute rule $r for year $y.
#-      $r      - DST rule number.
#-      $y      - year to be tested (default current year).

        
global $DSTrules;
        if (
$y == -9999$y date('Y');

        if     (
$r ==  0$dt 0;
        if     (
$r == 23$dt DSTisrael($y);
        elseif (
$r == 24$dt DSTbrazil($y);
        elseif (
$r count($DSTrules)) $dt strtotime($DSTrules['Rule'.$r][1].' '.$y );
        else    
$dt 0;
        
        return 
$dt;
        }

?>