|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.applib.value.Magnitude
org.nakedobjects.applib.value.DateTime
public class DateTime
Value object representing a date and time value.
| Constructor Summary | |
|---|---|
DateTime()
Create a Time object for storing a timeStamp set to the current time. |
|
DateTime(Date date)
|
|
DateTime(int year,
int month,
int day)
|
|
DateTime(int year,
int month,
int day,
int hour,
int minute)
Create a Date object set to the specified day, month and year. |
|
DateTime(int year,
int month,
int day,
int hour,
int minute,
int second)
|
|
| Method Summary | |
|---|---|
DateTime |
add(int years,
int months,
int days,
int hours,
int minutes)
Add the specified days, years and months to this date value. |
Calendar |
calendarValue()
|
protected DateTime |
createDateTime(Date date)
|
Date |
dateValue()
|
boolean |
equals(Object obj)
|
int |
getDay()
|
int |
getHour()
|
int |
getMinute()
|
int |
getMonth()
|
int |
getYear()
|
boolean |
isEqualTo(Magnitude timeStamp)
returns true if the time stamp of this object has the same value as the specified time |
boolean |
isLessThan(Magnitude timeStamp)
returns true if the timeStamp of this object is earlier than the specified timeStamp |
long |
longValue()
|
String |
toString()
|
| Methods inherited from class org.nakedobjects.applib.value.Magnitude |
|---|
isBetween, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, max, min |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateTime()
public DateTime(Date date)
public DateTime(int year,
int month,
int day)
public DateTime(int year,
int month,
int day,
int hour,
int minute)
public DateTime(int year,
int month,
int day,
int hour,
int minute,
int second)
| Method Detail |
|---|
public DateTime add(int years,
int months,
int days,
int hours,
int minutes)
public Calendar calendarValue()
protected DateTime createDateTime(Date date)
public Date dateValue()
public boolean equals(Object obj)
equals in class Objectpublic int getDay()
public int getHour()
public int getMinute()
public int getMonth()
public int getYear()
public boolean isEqualTo(Magnitude timeStamp)
isEqualTo in class Magnitudepublic boolean isLessThan(Magnitude timeStamp)
isLessThan in class Magnitudepublic long longValue()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||