note 44704 added to ref.xmlrpc
| From: | php at hendrik-krauss dot de | Date: | Fri, 13 Aug 2004 19:38:30 +0000 |
| Subject: | note 44704 added to ref.xmlrpc | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79882@lists.php.net to get a copy of this message | ||
On "datetime" values:
If you implement an XML-RPC server with these functions and a client calls a method on your server,
sending a datetime as parameter (in ISO 8601 format, as specified at http://www.xmlrpc.com/spec), the PHP XML-RPC will pass your
registered server method an object as parameter. That object, for example, looks like:
obj->type="datetime"
obj->scalar="20040420T13:32:40"
obj->timestamp=1082460760
If you do xmlrpc_get_type(obj), it will return "datetime", so presumably that function
just returns the value of 'type'. 'scalar' seems to be the on-the-wire
representation of the datetime (ISO 8601, exactly as received). 'timestamp' appears to be
the ISO value in 'scalar' converted into a normal PHP timestamp (i.e. Unix time_t).
Note on 'scalar': Using a MySQL DB, we did something like "select blah where
start_time >= $obj->scalar ;". That actually worked and returned expected results, so
MySQL appears to handle that ISO 8601 format correctly.
----
Manual Page -- http://www.php.net/manual/en/ref.xmlrpc.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44704
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44704&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44704&report=yes
Search -- http://master.php.net/manage/user-notes.php