Protocol::XMLRPC::Value::DateTime - XML-RPC array
my $datetime = Protocol::XMLRPC::Value::DateTime->new(1234567890); my $datetime = Protocol::XMLRPC::Value::DateTime->parse('19980717T14:08:55');
XML-RPC dateTime.iso8601
new
Creates new Protocol::XMLRPC::Value::DateTime instance. Accepts unix epoch time.
parse
Parses dateTime.iso8601 string and creates a new Protocol::XMLRPC:::Value::Base64 instance.
type
Returns 'datetime'.
value
my $datetime = Protocol::XMLRPC::Value::DateTime->new(1234567890); # $datetime->value returns 20091302T23:31:30
Returns serialized Perl5 scalar.
to_string
my $datetime = Protocol::XMLRPC::Value::DateTime->new(1234567890); # $datetime->to_string is now '<dateTime.iso8601>20091302T23:31:30</dateTime.iso8601>'
XML-RPC datetime string representation.
To install Protocol::XMLRPC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Protocol::XMLRPC
CPAN shell
perl -MCPAN -e shell install Protocol::XMLRPC
For more information on module installation, please visit the detailed CPAN module installation guide.