|
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.Date
Class representing a Date value.
| Constructor Summary | |
Date(int year,
int month,
int day)
Create a Date object using the given year, month, day. |
|
Date(long ms)
Create a Date object using the milliseconds value (Number of milliseconds since 1 januari, 1970) ignoring the Time component. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares two Date objects |
int |
getDay()
Returns the day |
int |
getMonth()
Returns the month |
long |
getTime()
Returns the Number of milliseconds since 1 januari, 1970. |
int |
getYear()
Returns the year |
java.lang.String |
toString()
Formats a date in the date escape format yyyy-mm-dd. |
static Date |
valueOf(java.lang.String s)
Create a Date object using a string having the yyyy-mm-dd format |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Date(int year,
int month,
int day)
year - the year value (absolute)month - the month value (1-12)day - the day value (absolute, starting with 1)public Date(long ms)
ms - Number of milliseconds since 1 januari, 1970| Method Detail |
public int getYear()
public int getMonth()
public int getDay()
public static Date valueOf(java.lang.String s)
s - date in yyyy-mm-dd formatjava.lang.IllegalArgumentException - If String is invalid.public java.lang.String toString()
toString in class java.lang.Objectpublic long getTime()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the date object to compare with this object
|
Java Client API Reference 6.0.2.61 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||