I am looping through a CSV file in PHP 5.3 and checking for dates. I have been using strtotime(), and it has worked well, except for one field I have that contains either a 1 or 2 char code.
strtotime() on any single char code seems to act like I am asking for now(), but if the code is 2 chars, it fails, as I would expect it to.
What am I not understanding about the way strtotime() works?
Take a look at http://www.php.net/manual/en/datetime.formats.time.php time formats. It seems that ‘a’ is a timezone. It might just be a mistake that ‘a’ works and it’s resolving to something else, but at least that’s the explanation.