|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xins.common.types.standard.Timestamp.Value
Value for the type _timestamp. Represents a specific moment in time, with second-precision.
Constructor Summary | |
Timestamp.Value(Calendar calendar)
Constructs a new timestamp value based on the specified Calendar . |
|
Timestamp.Value(Date date)
Constructs a new timestamp value based on the specified java.util.Date object. |
|
Timestamp.Value(int year,
int month,
int day,
int hour,
int minute,
int second)
Constructs a new timestamp value. |
|
Timestamp.Value(long millis)
Constructs a new timestamp value based on the specified number of milliseconds since the UNIX Epoch. |
Method Summary | |
Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(Object obj)
|
int |
getDayOfMonth()
Returns the day of the month. |
int |
getHourOfDay()
Returns the hour of the day. |
int |
getMinuteOfHour()
Returns the minute of the hour. |
int |
getMonthOfYear()
Returns the month of the year. |
int |
getSecondOfMinute()
Returns the second of the minute. |
int |
getYear()
Returns the year. |
int |
hashCode()
|
Date |
toDate()
Converts to a java.util.Date object. |
String |
toString()
Returns a textual representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Timestamp.Value(int year, int month, int day, int hour, int minute, int second)
year
- the year, including century, e.g. 2005
.month
- the month of the year in the range 1-12, e.g. 11
for
November.day
- the day of the month in the range 1-31, e.g. 1
for
the first day of the month.hour
- the hour of the day in the range 0-23, e.g. 22
for 10
o'clock at night.minute
- the minute of the hour in the range 0-59, e.g. 0
for
first minute of the hour.second
- the second of the minute in the range 0-59, e.g. 0
for the first second of the minute.public Timestamp.Value(Calendar calendar) throws IllegalArgumentException
Calendar
.
calendar
- the Calendar
object to get the exact date from,
cannot be null
.
IllegalArgumentException
- if calendar == null
.public Timestamp.Value(Date date) throws IllegalArgumentException
java.util.Date
object.
date
- the Date
object to get the exact date from,
cannot be null
.
IllegalArgumentException
- if date == null
.public Timestamp.Value(long millis) throws IllegalArgumentException
millis
- the number of milliseconds since the
UNIX Epoch.
IllegalArgumentException
- if millis < 0L
.System.currentTimeMillis()
Method Detail |
public Object clone()
null
.Object.clone()
public int getYear()
public int getMonthOfYear()
public int getDayOfMonth()
public int getHourOfDay()
public int getMinuteOfHour()
public int getSecondOfMinute()
public boolean equals(Object obj)
public int hashCode()
public Date toDate()
java.util.Date
object.
Date
corresponding to this value.public String toString()
null
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |