|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjodd.datetime.DateTimeStamp
public class DateTimeStamp
Generic date time stamp just stores and holds date and time information. This class does not contain any date/time logic, neither guarantees that date is valid.
JDateTime,
JulianDateStamp,
Serialized Form| Field Summary | |
|---|---|
int |
day
Day, range: [1 - 31] |
int |
hour
Hour, range: [0 - 23] |
int |
millisecond
Millisecond, range: [0 - 1000] |
int |
minute
Minute, range [0 - 59] |
int |
month
Month, range: [1 - 12] |
int |
second
Second, range: [0 - 59] |
int |
year
Year. |
| Constructor Summary | |
|---|---|
DateTimeStamp()
Default empty constructor. |
|
DateTimeStamp(int year,
int month,
int day)
Constructor that sets just date. |
|
DateTimeStamp(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
Constructor that sets date and time. |
|
| Method Summary | |
|---|---|
protected DateTimeStamp |
clone()
|
int |
compareDateTo(java.lang.Object o)
Compares just date component of two date time stamps. |
int |
compareTo(java.lang.Object o)
Compares this object with the specified object for order. |
boolean |
equals(java.lang.Object object)
|
int |
getDay()
|
int |
getHour()
|
int |
getMillisecond()
|
int |
getMinute()
|
int |
getMonth()
|
int |
getSecond()
|
int |
getYear()
|
int |
hashCode()
|
boolean |
isEqualDate(DateTimeStamp date)
|
boolean |
isEqualTime(DateTimeStamp time)
|
void |
setDay(int day)
|
void |
setHour(int hour)
|
void |
setMillisecond(int millisecond)
|
void |
setMinute(int minute)
|
void |
setMonth(int month)
|
void |
setSecond(int second)
|
void |
setYear(int year)
|
java.lang.String |
toString()
Simple to string conversion. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int year
public int month
public int day
public int hour
public int minute
public int second
public int millisecond
| Constructor Detail |
|---|
public DateTimeStamp()
public DateTimeStamp(int year,
int month,
int day,
int hour,
int minute,
int second,
int millisecond)
public DateTimeStamp(int year,
int month,
int day)
| Method Detail |
|---|
public int getYear()
public void setYear(int year)
public int getMonth()
public void setMonth(int month)
public int getDay()
public void setDay(int day)
public int getHour()
public void setHour(int hour)
public int getMinute()
public void setMinute(int minute)
public int getSecond()
public void setSecond(int second)
public int getMillisecond()
public void setMillisecond(int millisecond)
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - the Object to be compared.
java.lang.ClassCastException - if the specified object's type prevents it
from being compared to this Object.public int compareDateTo(java.lang.Object o)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected DateTimeStamp clone()
clone in class java.lang.Objectpublic boolean isEqualDate(DateTimeStamp date)
public boolean isEqualTime(DateTimeStamp time)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||