XML DateTime convert to UNIX timestamp

From: Date: Mon, 14 Apr 2003 10:28:32 +0000
Subject: XML DateTime convert to UNIX timestamp
Groups: php.soap 
Request: Send a blank email to php-soap+get-552@lists.php.net to get a copy of this message
Hi, I'm getting back a number of records in an array from a webservice. Each record in the array has an entry: <EntryDateTime>2003-04-10T16:32:01.0000000+01:00</EntryDateTime> I was wondering what the best way to get this into a UNIX timestamp would be, for all the records. Can PEAR::SOAP not auto convert datatypes back to PHP native things somehow? Is there a hook to can Add in some code to do this maybe? I realise there is the SOAP_Type_dateTime() method, just wanted to know if there is a way of automating the conversion on receiving the data. Thanks in advance, -- Mike Carter [web developer] tel: 01925 758229 // fax: 01925 758023 // web: www.koa.uk.com This message is confidential. Unless you are the named addressee or their delegated representative you may not use, disclose, or copy the contents of the e-mail. If you are not the named addressee please notify the sender immediately and delete the material from your computer. Any views or opinions contained in this e-mail are solely those of the author unless expressly stated otherwise ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________

« previous php.soap (#552) next »