note 41329 added to function.strtotime
| From: | cas1650 at ewwww-spam dot nebrwesleyan dot edu | Date: | Tue, 06 Apr 2004 15:48:06 +0000 |
| Subject: | note 41329 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67719@lists.php.net to get a copy of this message | ||
strtotime() sucks. As you can see reading through the notes, there are several examples of
questionable behaviors, things that should intuitively work differently, etc. That's because
you're basically learning a new language to describe times. I prefer mktime(), because there
is no possibility of ambiguity. It doesn't have niftiness factor -- you can't tell it to
fetch the third tuesday after the second full moon in 20x6 -- but for most applications, it's
quite sufficient and can help you avoid very frustrating bugs in your code.
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41329
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41329&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41329&report=yes
Search -- http://master.php.net/manage/user-notes.php