Keith Devens .com |
Tuesday, August 19, 2008 | ![]() |
| "For a while he didn't think it was possible. Then, once he got over that..." – GameSpy on Will Wright's "Spore" video game | ||
|
| ← DataVision | RSS auto-discovery with PHP → |

KC wrote:
Keith (http://keithdevens.com/) wrote:
Actually, you can still use php's strtotime function. Just to a str_replace and replace the 'T' in the middle with a space and then parse it with strtotime.
Jacob wrote:
strtotime will fail if the iso date contains a time zone offset (+01:00 or Z at the end of the string), sure these can be removed with a "substr" but then the time will be off... this can be corrected by parsing those last 5 characters, but already it seems as simple and more reliable to write your own parser. Anyone? ...
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.156s.
(Used 8 db queries)

GAH I KNOW.
I have been scouring google for a function that will let me do this.
I'm about to give up and write my own.