Re: strange behaviour with strtotime()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ford, Mike wrote:
On 31 January 2006 14:12, Barry wrote:


Barry wrote:
Last try:
Edit:
>  > also 31st January -> +2 Month -> is for me 3rd April  >  >
>  > 31st March is not true because i miss "3" (!!) days.  >


Huh?  Are you saying that, for you:

   strtotime("+2 months");

gives 3rd April?  If so, I would be absolutely amazed, because I get 31st March, which is exactly what I expect.

Of course, if you add 1 month to 31st Jan, then add 1 month to the result, you will get 3rd April -- but that's not the same as simply adding 2 months to 31st Jan.  If you want 2 months from today, ask for 2 months from today -- not 1 month from 1 month from today!!

Thats not logic at all.

If you want 2 apples ask for two ones. Not for one apple and one more apple. Because you would just get 1 1/2. Wtf!?

O_o

--
Smileys rule (cX.x)C --o(^_^o)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux