|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.cim.CIMDateTime javax.cim.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
yyyy - is a 4 digit year
MM - is the month
dd - is the day of the month
HH - is the hour (24 hour clock)
mm - is the minute
ss - is the second
mmmmmm - is the number of microseconds
s - is "+" or "-", indicating the sign of the UTC (Universal Coordinated
Time; for all intents and purposes the sane as Greenwhich Mean Time)
utc - is the offset from UTC in minutes (using the sign indicated by s).
For example Monday, May 25, 1998, at 1:30 PM EST would be represented as:
19980525133015.000000-300
Values must be zero-padded so that
the entire string is always the same 25-character length. Fields which are
not significant must be replaced with asterisk characters.
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(java.lang.Object pDateTime)
Compares the CIMDateTimeAbsolute object with this one. |
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 |
getYear()
Returns year value of this Date |
int |
hashCode()
returns the hashcode for this object |
java.lang.String |
toString()
Returns a String representation of the CIMDateTimeAbsolute. |
Methods inherited from class javax.cim.CIMDateTime |
equals |
Methods inherited from class java.lang.Object |
equals, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public CIMDateTimeAbsolute()
public CIMDateTimeAbsolute(java.util.Calendar pCalendar) throws java.lang.IllegalArgumentException
pCalendar
- A Calendar object used to initialize this object
java.lang.IllegalArgumentException
- if Calendar object is nullpublic CIMDateTimeAbsolute(java.lang.String pDateTime) throws java.lang.IllegalArgumentException
pDateTime
- A string in the format of yyyyMMddHHmmss.SSSSSSsutc
java.lang.IllegalArgumentException
- if string is not in the correct formatMethod Detail |
public int compareTo(java.lang.Object pDateTime) throws java.lang.IllegalArgumentException
compareTo
in interface java.lang.Comparable
pDateTime
- The CIMDateTimeAbsolute to be compared with this one
java.lang.IllegalArgumentException
- if the object passed in is not an instance of
CIMDataTimeAbsolutepublic java.lang.String getDateTimeString()
getDateTimeString
in class CIMDateTime
public int getDay()
public int getHour()
public int getMicrosecond()
public int getMinute()
public int getMonth()
public int getSecond()
public int getYear()
public int hashCode()
hashCode
in class CIMDateTime
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |