note 27846 added to function.strtotime

From: Date: Fri, 20 Dec 2002 18:41:05 +0000
Subject: note 27846 added to function.strtotime
Groups: php.notes 
Request: Send a blank email to php-notes+get-41160@lists.php.net to get a copy of this message
Omitting the century in a date format string (e.g., "09/09/55") passed to strtotime() returns an error. However, the link to the GNU Manual page pertaining to "calendar date item" states that this format is acceptable. This is incorrect in rergards to strtotime(). It is obvious that a string such as "04/09/55" can be interpreted differently depending on the locale; and, that this can be considered a valid error. A simple note (or example) above, stating that this is the case with strtotime() -- that it needs the century to work -- would have saved me some time. -- http://www.php.net/manual/en/function.strtotime.php http://master.php.net/manage/user-notes.php?action=edit+27846 http://master.php.net/manage/user-notes.php?action=delete+27846 http://master.php.net/manage/user-notes.php?action=reject+27846

« previous php.notes (#41160) next »