| Tibco-Rv documentation | view source | Contained in the Tibco-Rv distribution. |
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).
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.
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>
| Tibco-Rv documentation | view source | Contained in the Tibco-Rv distribution. |