NAME
Tibco::Rv::Msg::DateTime - Tibco DateTime datatype
SYNOPSIS
my ( $date ) = $msg->createDateTime; my ( $now ) = Tibco::Rv::Msg::DateTime->now; $msg->addDateTime( now => $now ); print "time: $now\n";
DESCRIPTION
DateTime-manipulating class. Holds seconds since the epoch plus some nanoseconds.
CONSTRUCTOR
- $date = new Tibco::Rv::Msg::DateTime( %args )
-
%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). - $now = Tibco::Rv::Msg::DateTime->now
-
Creates a
Tibco::Rv::Msg::DateTime
with seconds specifying the current time.
METHODS
- $sec = $date->sec
- $date->sec( $sec )
- $nsec = $date->nsec
- $date->nsec( $nsec )
- $date->toNum (or 0+$date)
- $date->toString (or "$date")
AUTHOR
Paul Sturm <sturm@branewave.com>