|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.cim.CIMDateTime
javax.cim.CIMDateTimeAbsolute
public class CIMDateTimeAbsolute
This class represents the datetime data type when used as a time value as specified in the CIM Infrastructure specification. It is in the format yyyyMMddHHmmss.SSSSSSsutc where:
| Constructor Summary | |
|---|---|
CIMDateTimeAbsolute()
Create a CIMDateTimeAbsolute object using the current
Time/Date of the system. |
|
CIMDateTimeAbsolute(java.util.Calendar pCalendar)
Create a CIMDateTimeAbsolute object using a
Calendar object. |
|
CIMDateTimeAbsolute(java.lang.String pDateTime)
Creates a CIMDateTimeAbsolute object using a string. |
|
| Method Summary | |
|---|---|
int |
compareTo(CIMDateTime pDateTime)
Compares the CIMDateTimeAbsolute object with this one. |
boolean |
equals(java.lang.Object pObj)
Determines whether the CIMDateTimeAbsolute that is passed in
is equal to the current CIMDateTimeAbsolute object. |
java.lang.String |
getDateTimeString()
Gets the internal string representation of the date/time object. |
int |
getDay()
Returns day value of this date. |
int |
getHour()
Returns hour value of this date. |
int |
getMicrosecond()
Returns microsecond value of this date. |
int |
getMinute()
Returns minute value of this date. |
int |
getMonth()
Returns month value of this date. |
int |
getSecond()
Returns second value of this date. |
int |
getUTCOffset()
Returns UTC offset value of this date. |
int |
getYear()
Returns year value of this Date. |
int |
hashCode()
Returns the hash code for this object. |
java.lang.String |
toString()
Returns a String representation of the
CIMDateTimeAbsolute. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CIMDateTimeAbsolute()
CIMDateTimeAbsolute object using the current
Time/Date of the system.
public CIMDateTimeAbsolute(java.util.Calendar pCalendar)
throws java.lang.IllegalArgumentException
CIMDateTimeAbsolute object using a
Calendar object.
pCalendar - A Calendar object used to initialize this object.
java.lang.IllegalArgumentException - If Calendar object is null.
public CIMDateTimeAbsolute(java.lang.String pDateTime)
throws java.lang.IllegalArgumentException
CIMDateTimeAbsolute object using a string.
pDateTime - A string in the format of yyyyMMddHHmmss.SSSSSSsutc.
java.lang.IllegalArgumentException - If string is not in the correct format.| Method Detail |
|---|
public int compareTo(CIMDateTime pDateTime)
throws java.lang.IllegalArgumentException
CIMDateTimeAbsolute object with this one. If
either date has "Not Significant" fields then we can only compare the
significant fields.
pDateTime - The CIMDateTimeAbsolute to be compared with this
one.
java.lang.IllegalArgumentException - If the object passed in is not an instance of
CIMDataTimeAbsolute.public boolean equals(java.lang.Object pObj)
CIMDateTimeAbsolute that is passed in
is equal to the current CIMDateTimeAbsolute object.
equals in class CIMDateTimepObj - The CIMDateTimeAbsolute object to compare to.
true if this CIMDateTimeAbsolute object
is equal to the one that was passed in, otherwise
false.public java.lang.String getDateTimeString()
getDateTimeString in class CIMDateTimepublic int getDay()
public int getHour()
public int getMicrosecond()
public int getMinute()
public int getMonth()
public int getSecond()
public int getUTCOffset()
public int getYear()
public int hashCode()
hashCode in class CIMDateTimeObject.hashCode()public java.lang.String toString()
String representation of the
CIMDateTimeAbsolute. This method is intended to be used only
for debugging purposes, and the format of the returned string may vary
between implementations. The returned string may be empty but may not be
null.
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||