function xmlrpc_date_get_xml
Same name and namespace in other branches
- 6.x drupal-6.x/includes/xmlrpc.inc \xmlrpc_date_get_xml()
Converts an XML-RPC date-time object into XML.
Parameters
$xmlrpc_date: The XML-RPC date-time object.
Return value
string An XML representation of the date/time as XML.
1 call to xmlrpc_date_get_xml()
- xmlrpc_value_get_xml in drupal-7.x/
includes/ xmlrpc.inc - Generates XML representing the given value.
Archivo
- drupal-7.x/
includes/ xmlrpc.inc, line 493 - Drupal XML-RPC library.
Código
function xmlrpc_date_get_xml($xmlrpc_date) {
return '<dateTime.iso8601>' . $xmlrpc_date->year . $xmlrpc_date->month . $xmlrpc_date->day . 'T' . $xmlrpc_date->hour . ':' . $xmlrpc_date->minute . ':' . $xmlrpc_date->second . '</dateTime.iso8601>';
}