note 7044 deleted from time by torben
| From: | torben@php.net | Date: | Sun, 20 Aug 2000 03:20:28 +0000 |
| Subject: | note 7044 deleted from time by torben | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2689@lists.php.net to get a copy of this message | ||
A little thing the description doesn't mention . . .
<P>
If you have a chunk of mysql timestamp data, then you can feed it through time() to make it work
properly with date().
<P>
Eg:<BR>
The mysql timestamp value is "20000722055302".
<P>
Feeding it through date() directly like date("n/j", $row->TimeVar) will give incorrect
output, in this case 1/25.
<P>
Using time() however, like date("n/j", time($row->TimeVar)) will give the correct
output of 7/25.