#19515 [NEW]: Parameters of function strtotime() seem wrong

From: Date: Fri, 20 Sep 2002 07:23:34 +0000
Subject: #19515 [NEW]: Parameters of function strtotime() seem wrong
Groups: php.bugs php.doc 
Request: Send a blank email to php-bugs+get-19837@lists.php.net to get a copy of this message
From: dallas@php.net Operating system: PHP version: 4CVS-2002-09-20 PHP Bug Type: Documentation problem Bug description: Parameters of function strtotime() seem wrong 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 bug report at http://bugs.php.net/?id=19515&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19515&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19515&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19515&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19515&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19515&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19515&r=support Expected behavior: http://bugs.php.net/fix.php?id=19515&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19515&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19515&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19515&r=globals

« previous php.bugs (#19837) next »