A community in which webmasters can ask for help with topics such as PHP coding , MySQL , IT jobs, web design, IT security.
Current location:homephp forumphp talk in 2009 yearIs there anything like Chronic available in PHP? - page 1
User InfoPosts
Is there anything like Chronic available in PHP?#1
I am looking for a very robust datetime parser, similar to Ruby(s Chronic, but for PHP. strtotime() isn(t cutting it for a lot of the edge cases I(m seeing in my project.

Anyone know of any good libraries?

Ideally:
- PHP 5 OOP
- well documented
- fast and stable

Thanks!

posted date: 2009-04-16 16:28:00


Re: Is there anything like Chronic available in PHP?#2
I had made out the solution of this problem. click to view my topic...

hope that hepls.

posted date: 2009-04-16 16:28:01


Re: Is there anything like Chronic available in PHP?#3
strtotime is far and away the most popular... what edge cases are you encountering?

posted date: 2009-04-16 18:09:00


Re: Is there anything like Chronic available in PHP?#4
NO answers here, but I'd be curious on the edge cases. strToTime has always worked like magic for me.

posted date: 2009-04-16 22:10:00


Re: Is there anything like Chronic available in PHP?#5
What are the actual edge cases you are missing? It is impossible to determine what will work with edge cases if you do not know what they are. Are these dates that people are putting in or dates that a machine is coming up with?

posted date: 2009-04-17 05:36:00


Re: Is there anything like Chronic available in PHP?#6
humans provide them - I ended up not using strtotime() and instead using a date/time dropdown. Some edge cases were "tonight at 5pm", "next monday afternoon", etc.

posted date: 2009-04-28 17:43:00


select page: « 1 »
Copyright ©2008-2017 www.momige.com, all rights reserved.