Date: 09/20/02
- Next message: Dallas Thunder: "[PHP-DOC] I see"
- Previous message: dallas <email protected>: "[PHP-DOC] #19515 [NEW]: Parameters of function strtotime() seem wrong"
- In reply to: dallas <email protected>: "[PHP-DOC] #19515 [NEW]: Parameters of function strtotime() seem wrong"
- Next in thread: Dallas Thunder: "[PHP-DOC] I see"
- Reply: Dallas Thunder: "[PHP-DOC] I see"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 19515
Updated by: cynic <email protected>
Reported By: dallas <email protected>
-Status: Open
+Status: Bogus
Bug Type: Documentation problem
PHP Version: 4CVS-2002-09-20
New Comment:
"Jan 1 1970" is an absolute date. how do you want to change it's
timestamp?
reread the docs.
Previous Comments:
------------------------------------------------------------------------
[2002-09-20 02:23:34] dallas <email protected>
Function strtotime() is defined as below:
int strtotime ( string time [, int now])
But when I try this function, whatever value I provide to 'now' seem no
affect to the result at all.
I've tried following example:
echo strtotime("Jan 1 1970"), "\n";
echo strtotime("Jan 1 1970", 10000), "\n";
echo strtotime("Jan 1 1970", time()), "\n";
and the result is(PHP 4.0.6, 4.2.3, 4.3.0, Linux, Windows):
18000
18000
18000
I'm in GMT-0500, so I guess the result is correct. But what exactly
the parameter 'now' for? I supposed strtotime() function behave
correctly, so 'now' is just meaningless.
------------------------------------------------------------------------
-- Edit this bug report at http://bugs.php.net/?id=19515&edit=1-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Dallas Thunder: "[PHP-DOC] I see"
- Previous message: dallas <email protected>: "[PHP-DOC] #19515 [NEW]: Parameters of function strtotime() seem wrong"
- In reply to: dallas <email protected>: "[PHP-DOC] #19515 [NEW]: Parameters of function strtotime() seem wrong"
- Next in thread: Dallas Thunder: "[PHP-DOC] I see"
- Reply: Dallas Thunder: "[PHP-DOC] I see"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

