Forum Moderators: coopster

Message Too Old, No Replies

Converting "2007-05-06T18:48:34-07:00" to timestamp?

Craigslist XML RSS, time

         

kazisdaman3

11:14 am on May 7, 2007 (gmt 0)

10+ Year Member



Hi Webmaster world,

I know alittle bit about parsing, but I really have no idea ho to parse this, and conver this to a timestamp. any ideas?

$date = 2007-05-06T16:52:54-07:00

which should be: 2007-05-06, 4:52PM PDT

Any ideas are greatly appreciated, thanks for taking the time to help me.

Little_G

12:51 pm on May 7, 2007 (gmt 0)

10+ Year Member



Hi,

Take a look at strtotime [php.net].

Andrew