Web lists-archives.com

Re: [PHP] What's with 2016-11-06





> Date: Tuesday, October 25, 2016 14:10:21 +0000
> From: Cliff Nieuwenhuis <c.nieuwenhuis@xxxxxxxxxxxxxx>
>
> This is a stripped-down version of a calendar program.  Can anyone
> explain why November 6 2016 appears twice? Or 2015-11-01?
> 
> I'm assuming the fault lies with
> 
>         $calday = $calday + (60 * 60 * 24);
> 
> ...but I'd like to know why some days apparently have less than
> 86400 seconds and how (efficiently) to work around that.
> 

DST. On both 2015-11-01 and 2016-11-06 the US switched back to
standard time.

Look at:

  <http://php.net/manual/en/function.date.php>

I (capital i) Whether or not the date is in daylight saving time

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php