|
Java Client API Reference 6.0.2.61 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ssaglobal.bde.DateTime
Class representing a DateTime value.
| Constructor Summary | |
DateTime(int year,
int month,
int day,
int hour,
int minute,
int second)
Create a new DateTime instance This date object is lenient, it accepts a wider range of field values than it produces. |
|
DateTime(long ms)
Creates a DateTime object using the Number of milliseconds since 1 januari, 1970 |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares two DateTime Objects |
int |
getDay()
Returns the day |
int |
getHour()
Returns the hour |
int |
getMinute()
Returns the minute |
int |
getMonth()
Returns the month |
int |
getSecond()
Returns the second |
long |
getTime()
Returns the milliseconds since 1 januari, 1970, of this DateTiem object |
int |
getYear()
Returns the year |
java.lang.String |
toString()
Returns a string representing this DateTime value (ISO 8601) |
static DateTime |
valueOf(java.lang.String s)
Creates a DateTime object out of a string (ISO 8601) |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DateTime(int year,
int month,
int day,
int hour,
int minute,
int second)
year - the year value (absolute)month - the month value (1-12)day - the day value (absolute, starting with 1)hour - the hourminute - the minutesecond - the secondpublic DateTime(long ms)
ms - Number of milliseconds since 1 januari, 1970| Method Detail |
public int getYear()
public int getMonth()
public int getDay()
public int getHour()
public int getMinute()
public int getSecond()
public long getTime()
public static DateTime valueOf(java.lang.String s)
s - the DateTime value in string format (ISO 8601)java.lang.IllegalArgumentException - If String is invalid.*public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the DateTime object to compare
|
Java Client API Reference 6.0.2.61 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||