Keys →
Functions ↓
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; } }?>