note 33196 added to function.strtotime

From: Date: Wed, 18 Jun 2003 22:13:46 +0000
Subject: note 33196 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-50605@lists.php.net to get a copy of this message
odd behavior noted between windows and linux and different versions of PHP with regards to daylight savings time. Try this yourself. Note that 4/4/2004 2:30 doesn't actually exist - your clock goes right from 1:59:59 to 3:00:00 echo "strtotime(\"2004-04-04 02:30:00\"): ".date("l n/j/Y H:i",strtotime("2004-04-04 02:30:00")); output unix, php 4.0.6: strtotime("2004-04-04 02:30:00"): Wednesday 12/31/1969 17:59 output windows, php 4.3.2: strtotime("2004-04-04 02:30:00"): Sunday 4/4/2004 01:30 ---- Manual Page -- http://www.php.net/manual/en/function.strtotime.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33196 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33196&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33196&report=yes

« previous php.notes (#50605) next »