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

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  inDST   Lines 247-268 (21 lines) file  determineDstState.php   Last mod: Thu 2021-06-10 13:36:58

function inDST $t$start$finish )
        {
#-k     DST
#-      Return 1 if the date is in DST, 0 if it's not

        
if ($start == $finish)
                {       
# dates are same - no DST
                
return 0;
                }
        else
        if (
$start $finish)
                {       
# nothern hemisphere
                
if (($t >= $start)  &&  ($t $finish)) return 1;
                else return 
0;
                }
        else
                {       
# southern hemisphere
                
if (($t >= $start)  ||  ($t $finish)) return 1;
                else return 
0;
                }
        }

?>