Tibco::Rv::Msg::DateTime - Tibco DateTime datatype
my ( $date ) = $msg->createDateTime; my ( $now ) = Tibco::Rv::Msg::DateTime->now; $msg->addDateTime( now => $now ); print "time: $now\n";
DateTime-manipulating class. Holds seconds since the epoch plus some nanoseconds.
%args: sec => $seconds, nsec => $nanoseconds
Creates a Tibco::Rv::Msg::DateTime, with $seconds since the epoch (defaults to 0 if unspecified), and $nanoseconds before or after that time (defaults to 0 if unspecified).
Tibco::Rv::Msg::DateTime
$seconds
$nanoseconds
Creates a Tibco::Rv::Msg::DateTime with seconds specifying the current time.
Returns the seconds.
Sets the seconds.
Returns the nanoseconds.
Sets the nanoseconds.
Returns a string representation of $date. For example, "Fri Jan 31 04:43:55 2003Z". Note that this is Zulu (GMT) time. Or, simply use $date in a string context.
$date
Returns the number of seconds since the epoch represented by $date. Suitable for passing to localtime( ) or other time functions. Or, simply use $date in a numeric context.
Paul Sturm <sturm@branewave.com>
To install Tibco::Rv, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tibco::Rv
CPAN shell
perl -MCPAN -e shell install Tibco::Rv
For more information on module installation, please visit the detailed CPAN module installation guide.