Hey all.. I have a date/time in the format of "10-03-2006 9:00 am Eastern".. Can someone point me in the direction of how to convert that to a GMT Timestamp?
Thanks
David
Converting a time go GMT Timestamp
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
That's a fairly odd date-time format, but shouldn't be too difficult to handle. strtotime() may do most of the work, but it may get the date wrong at times and the time offset will likely be off too. Once you have it as a localized unix timestamp, you can add date('Z') to it.