Re: strange behaviour with strtotime()

From: Date: Tue, 31 Jan 2006 12:52:20 +0000
Subject: Re: strange behaviour with strtotime()
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-229536@lists.php.net to get a copy of this message
> 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 / "M"onth; > > Post result please. > > i get: > strtotime1:1143801588 > strtotime2:1143801588 > time:1138707588 > time1:31 03 2006 | time2:31 01 2006 > > > thats indeed funny O_o strtotime1:1141390219 strtotime2:1141390219 time:1138711819 time1:03 03 2006 | time2:31 01 2006 different!!

« previous php.general (#229536) next »