NAME
Protocol::XMLRPC::Value::DateTime - XML-RPC array
SYNOPSIS
my $datetime = Protocol::XMLRPC::Value::DateTime->new(1234567890);
my $datetime = Protocol::XMLRPC::Value::DateTime->parse('19980717T14:08:55');
DESCRIPTION
XML-RPC dateTime.iso8601
METHODS
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.
AUTHOR
Viacheslav Tykhanovskyi, vti@cpan.org
.
COPYRIGHT
Copyright (C) 2009, Viacheslav Tykhanovskyi.
This program is free software, you can redistribute it and/or modify it under the same terms as Perl 5.10.