javax.cim
public class CIMDateTimeAbsolute extends CIMDateTime implements Serializable
CIMDateTimeAbsolute
class is modeled on the datetime data
type as specified in the CIM 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(Calendar pCalendar)
Create a CIMDateTimeAbsolute object using a
Calendar object.
| |
CIMDateTimeAbsolute(String pDateTime)
Creates a CIMDateTimeAbsolute object using a string.
|
Method Summary | |
---|---|
int | compareTo(Object pDateTime)
Compares the CIMDateTimeAbsolute object with this one. |
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 | getYear()
Returns year value of this Date.
|
int | hashCode()
Returns the hashcode for this object.
|
String | toString()
Returns a String representation of the
CIMDateTimeAbsolute . |
CIMDateTimeAbsolute
object using the current
Time/Date of the system.CIMDateTimeAbsolute
object using a
Calendar
object.
Parameters: pCalendar -
A Calendar
object used to initialize this
object.
Throws: IllegalArgumentException -
If pCalendar
is null
.
CIMDateTimeAbsolute
object using a string.
Parameters: pDateTime - A string in the format of yyyyMMddHHmmss.SSSSSSsutc
Throws: IllegalArgumentException - if string is not in the correct format.
CIMDateTimeAbsolute
object with this one. If
either date has "Not Significant" fields then we can only compare the
significant fields.
Parameters: pDateTime -
The CIMDateTimeAbsolute
to be compared with
this one.
Returns: -1, zero, or 1 as this date is less than, equal to, or greater than the specified date.
Throws: IllegalArgumentException
If the object passed in is not an instance of
CIMDataTimeAbsolute
.
Returns: The internal representation of the date/time object.
See Also: getDateTimeString
Returns: If day field "not significant" this returns -1, otherwise returns day of this date.
Returns: If hour field "not significant" this returns -1, otherwise returns hour of this date.
Returns: If microsecond field "not significant" this returns -1, otherwise returns microseconds of this date.
Returns: If minute field "not significant" this returns -1, otherwise returns minute of this date.
Returns: If month field "not significant" this returns -1, otherwise returns the month of this date.
Returns: If second field "not significant" this returns -1, otherwise returns second of this date.
Returns: If year field "not significant" this returns -1, otherwise returns the year of this date.
Returns: A hashcode value for this object.
See Also: java.lang.Object#hashCode()
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
.
Returns: String representation of this datetime.
See Also: java.lang.Object#toString()