| |||||
Previous Next |
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 |
public Time getCurrent
public Time getTime(Integer hours, Integer minutes, Integer seconds)
public Boolean =(Time rhs)
public Time <>(Time rhs)
public Time addSecond(Integer seconds)
public Time addMinute(Integer minutes)
public Time addHour(Integer hours)
public Integer getSecond
public Integer getMinute
public Integer getHour
public Time max(Time rhs)
public Time min(Time rhs)
public Boolean <(Time rhs)
public Boolean >(Time rhs)
public Boolean <=(Time rhs)
public Boolean >=(Time rhs)
public String toString
| |||||
Previous Next |