Re: "Date object"

From: Date: Wed, 02 Jun 2004 00:16:21 +0000
Subject: Re: "Date object"
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-187412@lists.php.net to get a copy of this message
* Thus wrote Ryan A (ryan@coinpass.com): > > From: "Ryan A" <ryan@coinpass.com> > > > > > A bit confused, I downloaded a function and it says it takes a "date > > > object"....what exactly is a "date object"? > > > > > > This is exactly what is written " The function takes a date object as > its > > > only parameter." > > > > No such thing. If you look at the code, though, it looks like it expects > an > > array such as the one returned from getdate(). > > > > ---John Holmes... > > Yep, noticed the getdate() thing but was just confused about the "date > object" and went through the manual again plus google wondering how the heck > did I miss "date objects" when learning PHP :-)... Here's a little tip: $a = (object) getDate(); print_r($a); haha.. now you got your date object :) Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#187412) next »