I represent a duration of time. I have been tested to support durations of up to 4 billion (4,000,000,000) years with second precision and up to 50 billion (50,000,000) years with hour precision. Durations beyond 50 billion years have not been tested.
To create new Duration instances, use one of the static instance-creation methods, NOT 'new Duration':
Located in /harmoni/core/Primitives/Chronology/Duration.class.php (line 49)
SObject | --Magnitude | --Duration
Divide a Duration. Operand is a Duration or a Number
Test if this Duration is equal to aDuration.
Test if this Duration is less than aDuration.
Multiply a Duration. Operand is a Duration or a Number
Format as per ANSI 5.8.2.16: [-]D:HH:MM:SS[.S]
Answer an array {days. seconds. nanoSeconds}. Used by DateAndTime and Time
Truncate.
e.g. if the receiver is 5 minutes, 37 seconds, and aDuration is 2 minutes, answer 4 minutes.
Create a new instance with.
Create a new instance. aMonth is an Integer or a String
Inherited From Magnitude
Magnitude::isBetween()
Magnitude::isEqualTo()
Magnitude::isGreaterThan()
Magnitude::isGreaterThanOrEqualTo()
Magnitude::isLessThan()
Magnitude::isLessThanOrEqualTo()
Magnitude::max()
Magnitude::min()
Inherited From SObject
SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()
Documentation generated on Wed, 19 Sep 2007 10:22:51 -0400 by phpDocumentor 1.3.0RC3