Date handling in php?
Moderator: General Moderators
- allspiritseve
- DevNet Resident
- Posts: 1174
- Joined: Thu Mar 06, 2008 8:23 am
- Location: Ann Arbor, MI (USA)
Date handling in php?
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?
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
- allspiritseve
- DevNet Resident
- Posts: 1174
- Joined: Thu Mar 06, 2008 8:23 am
- Location: Ann Arbor, MI (USA)
Re: Date handling in php?
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.PCSpectra wrote:What are you trying to achieve?
Re: Date handling in php?
Here's an article about php5 DateTime and DateTimeZone classes
http://laughingmeme.org/2007/02/27/
http://laughingmeme.org/2007/02/27/
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Re: Date handling in php?
Cool. Thanks for the link matthijs. Never knew about those before.
Cheers,
Alex
Cheers,
Alex
Re: Date handling in php?
I just posted like the same thread as this
viewtopic.php?f=1&t=92194
- allspiritseve
- DevNet Resident
- Posts: 1174
- Joined: Thu Mar 06, 2008 8:23 am
- Location: Ann Arbor, MI (USA)
Re: Date handling in php?
Indeed you did. Sorry about that!The Ninja Space Goat wrote:I just posted like the same thread as thisviewtopic.php?f=1&t=92194