|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bmc.arsys.api.DateInfo
public class DateInfo
The DateInfo
class represents the days elapsed since January 1, 4713 B.C.
Constructor Summary | |
---|---|
DateInfo()
construct an empty DateInfo object |
|
DateInfo(int num_of_days)
Construct a DateInfo object using the Julian day, which is the number of days that have elapsed since January 1, 4713 B.C. |
|
DateInfo(int year,
int month,
int day)
Construct a DateInfo with the year, month and day info provided |
|
DateInfo(String num_of_days)
Construct a DateInfo object using the string representation of the number of days since January 1, 4713 B.C. |
Method Summary | |
---|---|
Object |
clone()
Clone implementation that returns an Object with data cloned from self. |
static int |
dateToJulianDate(int year,
int month,
int day)
convert the given year, month and day info into Julian Date |
static int |
dateToJulianDate(String pattern,
String date_str)
convert the given date string into Julian Date |
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the provided one. |
GregorianCalendar |
GetDate()
Return GregorianCalendar date for the current DateInfo object. |
int |
getValue()
Returns the number of days since January 1, 4713 B.C. |
int |
hashCode()
Returns the hash code value for this instance of the current class. |
void |
setDate(int year,
int month,
int day)
Set the date with the year, month and day info provided |
void |
setValue(DateInfo dt)
Sets the date using the given DateInfo object. |
void |
setValue(int num_of_days)
Sets the number of days since January 1, 4713 B.C. |
String |
toString()
Returns a string description of the object. |
boolean |
validateDate()
Checks whether this date is a valid date or not. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DateInfo()
public DateInfo(int num_of_days)
num_of_days
- public DateInfo(String num_of_days)
num_of_days
- public DateInfo(int year, int month, int day)
year
- the yearmonth
- the monthday
- the dayMethod Detail |
---|
public void setValue(int num_of_days)
public void setValue(DateInfo dt)
public int getValue()
public boolean equals(Object obj)
equals
in class Object
obj
- the object that we are comparing to
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public String toString()
toString
in class Object
public GregorianCalendar GetDate()
public void setDate(int year, int month, int day)
public boolean validateDate()
public static int dateToJulianDate(int year, int month, int day)
year
- the yearmonth
- the monthday
- the day
public static int dateToJulianDate(String pattern, String date_str) throws ARException
pattern
- the pattern describing the date formatdate_str
- the date string in the pattern specified above
ARException
public int hashCode()
hashCode
in class Object
|
AR System Java API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |