note 41329 deleted from function.strtotime by nlopess

From: Date: Fri, 09 Apr 2004 15:37:49 +0000
Subject: note 41329 deleted from function.strtotime by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67901@lists.php.net to get a copy of this message
Note Submitter: cas1650@ewwww-spam.nebrwesleyan.edu ---- 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.

« previous php.notes (#67901) next »