Type Time

All Supertypes:
OclAny

Predefined type Time
extends OclAny

The Time type represents time values. There is no literal for this type; you should use getCurrent or getTime static operations.


Operation Summary
 Boolean =(Time rhs)
          True if this time is the same as rhs.
 Boolean >=(Time rhs)
          True if this time is later than or equal to rhs.
 Boolean >(Time rhs)
          True if this time is later than rhs.
 Boolean <=(Time rhs)
          True if this time is earlier than or equal to rhs.
 Boolean <(Time rhs)
          True if this time is earlier than rhs.
 Time <>(Time rhs)
          True if this time is different from rhs.
 Time addHour(Integer hours)
          This time added with hours hours more.
 Time addMinute(Integer minutes)
          This time added with minutes minutes more.
 Time addSecond(Integer seconds)
          This time added with seconds seconds more.
 Time getCurrent
          Static; the current time (milliseconds are ignored).
 Integer getHour
          The number of hours of this time.
 Integer getMinute
          The number of minutes (in the hour) of this time.
 Integer getSecond
          The number of seconds (in the minute) of this time.
 Time getTime(Integer hours, Integer minutes, Integer seconds)
          Static; a time of hours hours, minutes minutes and seconds seconds.
 Time max(Time rhs)
          The latest hour between this time and rhs.
 Time min(Time rhs)
          The earliest hour between this time and rhs.
 String toString
          A representative character string of this time.
 
Operations inherited from type OclAny
=, <>, oclAsType, oclIsKindOf, oclIsTypeOf
 

Operations Detail

getCurrent

 public Time getCurrent
Static; the current time (milliseconds are ignored).

getTime

 public Time getTime(Integer hours, Integer minutes, Integer seconds)
Static; a time of hours hours, minutes minutes and seconds seconds.

=

 public Boolean =(Time rhs)
True if this time is the same as rhs.

<>

 public Time <>(Time rhs)
True if this time is different from rhs.

addSecond

 public Time addSecond(Integer seconds)
This time added with seconds seconds more. secondsmay be negative.

addMinute

 public Time addMinute(Integer minutes)
This time added with minutes minutes more. minutes may be negative.

addHour

 public Time addHour(Integer hours)
This time added with hours hours more. hours may be negative.

getSecond

 public Integer getSecond
The number of seconds (in the minute) of this time.

getMinute

 public Integer getMinute
The number of minutes (in the hour) of this time.

getHour

 public Integer getHour
The number of hours of this time. Cannot be more than 24.

max

 public Time max(Time rhs)
The latest hour between this time and rhs.

min

 public Time min(Time rhs)
The earliest hour between this time and rhs.

<

 public Boolean <(Time rhs)
True if this time is earlier than rhs.

>

 public Boolean >(Time rhs)
True if this time is later than rhs.

<=

 public Boolean <=(Time rhs)
True if this time is earlier than or equal to rhs.

>=

 public Boolean >=(Time rhs)
True if this time is later than or equal to rhs.

toString

 public String toString
A representative character string of this time.


Copyright 1999-2002 ObjeXion Software SA. All rights reserved.