|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javax.wbem.cim.CIMDateTime
| Constructor Summary | |
CIMDateTime()
Create a CIMDateTime object using the current Time/Date of the system |
|
CIMDateTime(java.util.Calendar c)
Creates a CIMDateTime object using a Calendar |
|
CIMDateTime(java.util.Date d)
Creates a CIMDateTime object using a Date |
|
CIMDateTime(java.lang.String dt)
Creates a CIMDateTime object using a string |
|
| Method Summary | |
boolean |
after(CIMDateTime when)
Compares the CIMDateTime with this one |
boolean |
before(CIMDateTime when)
Compares the CIMDateTime with this one |
boolean |
equals(java.lang.Object obj)
Compares the CIMDateTime with this one |
java.util.Calendar |
getCalendar()
|
boolean |
isInterval()
Tests if this is an interval |
java.lang.String |
toMOF()
Returns a MOF representation of the CIMDateTime |
java.lang.String |
toString()
Returns a String representation of the CIMDateTime. |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CIMDateTime()
public CIMDateTime(java.util.Date d)
d - The datepublic CIMDateTime(java.util.Calendar c)
c - The calendar
public CIMDateTime(java.lang.String dt)
throws java.lang.IllegalArgumentException
dt - A string in the format of yyyyMMddHHmmss.SSSSSSsutcjava.lang.IllegalArgumentException - if string is not int the correct format| Method Detail |
public java.util.Calendar getCalendar()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if this object refers to an interval
instead of a date/timepublic boolean isInterval()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toMOF()
public boolean after(CIMDateTime when)
throws java.lang.IllegalArgumentException
when - The CIMDateTime to be compared with this objectjava.lang.IllegalArgumentException - if one object refers to an interval
and the other does not.
public boolean before(CIMDateTime when)
throws java.lang.IllegalArgumentException
when - The CIMDateTime to be compared with this objectjava.lang.IllegalArgumentException - if one object refers to an interval
and the other does not.
public boolean equals(java.lang.Object obj)
throws java.lang.IllegalArgumentException
equals in class java.lang.Objectobj - The CIMDateTime to be compared with this onejava.lang.IllegalArgumentException - if one object refers to an interval
and the other does not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||