Re: weird foreach problem when calling date or getdate function,

From: Date: Sun, 05 May 2002 07:08:35 +0000
Subject: Re: weird foreach problem when calling date or getdate function,
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-96123@lists.php.net to get a copy of this message
Those numbers don't look like timestamps to me (as they can't be larger than about 4294967296). What they look like is the result of some imp or perhaps even a gremlin breaking into your code and smooshing together yearmonthdayhourminutesecond, then trying to PRETEND it's a timestamp. Go back and read the date/time chapter of the PHP manual a little more closely. miguel
They look like MYSQL timestamps to me. http://www.php.net/manual/en/function.date.php The MySQL timestamp format is NOT the same as the PHP timestamp format (otherwise known as the Unix timestamp format). MySQL uses a YYYYMMDDHHMMSS format whereas PHP uses a SSSSSSSSSSSS format. MySQL timestamp: 20020207164744 PHP (Unix) timestamp: 1013096864 -Kyle

« previous php.general (#96123) next »