Product SiteDocumentation Site

5.4.3. The TimeSpan Class

A TimeSpan object represents a point in between 1 January 0001 at 00:00.000000 and 31 December 9999 at 23:59:59.999999. A TimeSpan object has methods to allow formatting a date or time in various formats, as well as allowing arithmetic operations between dates.

Table 5.30. ooRexx TimeSpan Class

Object
TimeSpan
+ Comparable
+ Orderable
fromCivilTime
fromDays
fromHours
fromLongTime
fromMicroseconds
fromMinutes
fromNormalTime
fromSeconds
fromStringFormat
+ - / % // *
addDays
addHours
addMicroseconds
addMinutes
addSeconds
addWeeks
compareTo
days
duration
fromStringFormat
hashCode
hours
init
microseconds
minutes
seconds
sign
string
totalDays
totalHours
totMicroseconds
totalMinutes
totalSeconds

Note

The TimeSpan class also has available class methods that its metaclass, the Class class (Section 5.1.2, “The Class Class”), defines.

5.4.3.1. Inherited Methods

Methods inherited from the Object class (Section 5.1.1, “The Object Class”).
new (Class Method)initsend
= \= == \== <> ><instanceMethodsendWith
|| '' (abuttal)' ' (blank)instanceMethodssetMethod
(Operator Methods)isAstart
classisInstanceOfstartWith
copyobjectNamestring
defaultNameobjectName=unsetMethod
hasMethodrequest 
identityHashrun 
Methods inherited from the Comparable class (Section 5.4.4, “The Comparable Class”).
compareTo  
Methods inherited from the Orderable class (Section 5.1.1, “The Object Class”).
=, \=, ==, \==, <>, ><, >, <, >=, \<, <=, \>, >>, <<, >>=, \<<, <<=, \>> (Comparison Methods)