[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread James Benson
> try that: > echo "strtotime1:".strtotime ("next Month")."\n"; > echo "strtotime2:".strtotime ("next month")."\n"; > echo "time:".time()."\n"; > echo "time1:".strftime("%d %m %Y",strtotime("next Month"))." | > time2:".strftime("%d %m %Y",time()); > > (probably causing error because of "m"onth /

RE: [PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Ford, Mike
On 31 January 2006 13:29, Barry wrote: > James Benson wrote: > > The case makes no difference, because... > > > > > > echo date('r', strtotime ("next Month"))."\n"; > > echo date('r', strtotime ("next month"))."\n"; > > > I was referring here to a note on php.net -> > For those upgrading from P

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
James Benson wrote: The case makes no difference, because... echo date('r', strtotime ("next Month"))."\n"; echo date('r', strtotime ("next month"))."\n"; I was referring here to a note on php.net -> For those upgrading from PHP 4 to PHP 5 there are a number of things that are different abou

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread James Benson
The case makes no difference, because... echo date('r', strtotime ("next Month"))."\n"; echo date('r', strtotime ("next month"))."\n"; gives... Fri, 03 Mar 2006 12:52:54 + Fri, 03 Mar 2006 12:52:54 + BTW, Im using Debian, PHP 4.4.2 and my machines time zone is Europe/London Few mor

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
Barry wrote: James Benson wrote: Im encountering some very weird behaviour when using the following:- echo date("M", strtotime("next month")); outputs: Mar while echo date("r",time()); outputs: Tue, 31 Jan 2006 11:21:47 + anyone know why? ---

[PHP] Re: strange behaviour with strtotime()

2006-01-31 Thread Barry
James Benson wrote: Im encountering some very weird behaviour when using the following:- echo date("M", strtotime("next month")); outputs: Mar while echo date("r",time()); outputs: Tue, 31 Jan 2006 11:21:47 + anyone know why? --