Protocol::XMLRPC::Value::DateTime - XML-RPC array


Protocol-XMLRPC documentation  | view source Contained in the Protocol-XMLRPC distribution.

Index


NAME

Top

Protocol::XMLRPC::Value::DateTime - XML-RPC array

SYNOPSIS

Top

    my $datetime = Protocol::XMLRPC::Value::DateTime->new(1234567890);
    my $datetime = Protocol::XMLRPC::Value::DateTime->parse('19980717T14:08:55');

DESCRIPTION

Top

XML-RPC dateTime.iso8601

METHODS

Top

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

Top

Viacheslav Tykhanovskyi, vti@cpan.org.

COPYRIGHT

Top


Protocol-XMLRPC documentation  | view source Contained in the Protocol-XMLRPC distribution.