|
|||||
Previous Next |
The Date type represents date values. There is no literal for this type; you should use getCurrent or getDate static operations.
Operation Summary | |
Boolean
|
=(Date rhs)
True if this date corresponds to rhs. |
Boolean
|
>=(Date rhs)
True if this date is more recent or equivalent to rhs. |
Boolean
|
>(Date rhs)
True if this date is more recent than rhs. |
Boolean
|
<=(Date rhs)
True if this date is older or equivalent to rhs. |
Boolean
|
<(Date rhs)
True if this date is older than rhs. |
Boolean
|
<>(Date rhs)
True if this date does not correspond to rhs. |
Integer
|
-(Date rhs)
This is a shorthand for daysFrom. |
Date
|
addDay(Integer days)
This date adding days days. |
Date
|
addMonth(Integer monthes)
This date adding monthes monthes. |
Date
|
addYear(Integer years)
This date adding years years. |
Integer
|
daysFrom(Date rhs)
The number of days between this date and rhs. |
Date
|
getCurrent Static; the current date. |
Date
|
getDate(Integer year, Integer month,
Integer day) Static; the date with the year year, the month cardinality month and the day in month cardinality day. |
Integer
|
getDay The day cardinality (in the month) of this date. |
Integer
|
getMonth The month cardinality (in the year) of this date. |
Integer
|
getYear The year of this date. |
Date
|
max(Date rhs)
The most recent date between this date and rhs. |
Date
|
min(Date rhs)
The oldest date between this date and rhs. |
String
|
toString A representative character string of this date. |
Operations inherited from type OclAny |
=, <>,
oclAsType, oclIsKindOf,
oclIsTypeOf
|
Operations Detail |
public Date getCurrent
public Date getDate(Integer year, Integer month, Integer day)
public Boolean =(Date rhs)
public Boolean <>(Date rhs)
public Integer -(Date rhs)
public Integer daysFrom(Date rhs)
public Date addDay(Integer days)
public Date addMonth(Integer monthes)
public Date addYear(Integer years)
public Integer getDay
public Integer getMonth
public Integer getYear
public Date max(Date rhs)
public Date min(Date rhs)
public Boolean <(Date rhs)
public Boolean >(Date rhs)
public Boolean <=(Date rhs)
public Boolean >=(Date rhs)
public String toString
|
|||||
Previous Next |