Page 1 of 1

Date handling in php?

Posted: Tue Dec 30, 2008 3:33 pm
by allspiritseve
I remember reading somewhere about how PHP has built in DateTime and DateTimeZone classes, but I can't find anything more than a reference to them in the manual. I think the original article I read said that they were good, but a little quirky. Does anyone use them? Is there good documentation anywhere? Should I build my own objects, as described in PHP in action?

Re: Date handling in php?

Posted: Tue Dec 30, 2008 8:10 pm
by alex.barylski
I can't think of anything, other than:

http://ca3.php.net/intl

What are you trying to achieve?

Re: Date handling in php?

Posted: Tue Dec 30, 2008 8:34 pm
by allspiritseve
PCSpectra wrote:What are you trying to achieve?
Nothing in particular, I haven't really done much with dates before and I'd like to start using objects instead of functions for them. I guess I just wanted some feedback as to whether to build my own or use the built-in php classes.

Re: Date handling in php?

Posted: Wed Dec 31, 2008 2:16 am
by matthijs
Here's an article about php5 DateTime and DateTimeZone classes
http://laughingmeme.org/2007/02/27/

Re: Date handling in php?

Posted: Wed Dec 31, 2008 2:52 am
by alex.barylski
Cool. Thanks for the link matthijs. Never knew about those before.

Cheers,
Alex

Re: Date handling in php?

Posted: Wed Dec 31, 2008 11:51 pm
by Luke
I just posted like the same thread as this :) viewtopic.php?f=1&t=92194

Re: Date handling in php?

Posted: Thu Jan 01, 2009 1:25 am
by allspiritseve
The Ninja Space Goat wrote:I just posted like the same thread as this :) viewtopic.php?f=1&t=92194
Indeed you did. Sorry about that!