Date problem
| From: | German Piqué | Date: | Wed, 20 Sep 2006 08:40:39 +0000 |
| Subject: | Date problem | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-27158@lists.php.net to get a copy of this message | ||
Like in the other mail, I have another problem with my logging class...
I'm trying to get the current date to write it in each line it's writed but
the process is stopped when I try to access the hours, the minutes or the
seconds.
$now = getdate();
$stringNow = $now["year"] . $now["month"] . $now["mday"] . " - "/*$now["hours"] . ":" . $now["minutes"] . ":" . $now["seconds"]*/; The commented code is the one that causes the execution to break. I compared the keys with the ones on the getdate's documentation page and they're the same... Anyone had this problem and know anything of it? Thanks :)