I'm not quite sure what you are asking. I think you need to find out if a specific date is for summer savings or not. If so, you can use date('I') .
$dst_now = date('I'); // whether our current timezone is currently in DST $dst_then = date('I', strtotime($date)); // whether that date is in DST for our current timezone $date_obj = new DateTime($date, new DateTimeZone('Europe/Paris')); $dst_thereandthen = $date_obj->format('I'); // whether that date is in DST for that timezone
If you do not need any of them, please specify what you need ...
source share