The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

perfSONAR_PS::Time - A module that provides methods for the a simple time element that can represent either single points in time or time ranges as unix timestamps.

new ($package, $type, $arg1, $arg2) This allocates a perfSONAR_PS::Time element. The type parameter can be one of 'range', 'duration' or 'point'. If the type is 'point', then $arg1 is the time parameter as a unix timestamp. If the type is 'range', then $arg1 is the startTime and $arg2 is the endTime. If the type is 'duration', then $arg1 is the startTime and $arg2 is the duration.

getType ($self) This function returns what type 'point', 'range' or 'duration' that this Time element is.

getTime ($self) This function is valid for Time elements of type 'point' and simply returns the point in time that this element describes.

getStartTime ($self) This function is valid for Time elements of type 'range' or 'duration' and returns the starting point of the time range.

getEndTime ($self) This function is valid for Time elements of type 'range' or 'duration' and returns the ending point of the time range.

getDuration ($self) This function is valid for Time elements of type 'duration' and returns the duration of the time range.

VERSION

$Id$

AUTHOR

Aaron Brown, aaron@internet2.edu

LICENSE

You should have received a copy of the Internet2 Intellectual Property Framework along with this software. If not, see <http://www.internet2.edu/membership/ip.html>

COPYRIGHT

Copyright (c) 2004-2008, Internet2 and the University of Delaware

All rights reserved.