|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.wbem.cim.CIMDateTime
public class CIMDateTime
Field Summary | |
---|---|
static int |
DAY_PRESICION
|
static int |
FULL_PRESICION
|
static int |
HOUR_PRESICION
|
protected java.util.Calendar |
iCalendar
|
protected java.lang.String |
iDateString
|
protected int |
iDay
|
protected int |
iHour
|
protected boolean |
iInterval
|
protected int |
iMicrosecond
|
protected int |
iMillisecond
|
protected int |
iMinute
|
protected int |
iMonth
|
protected int |
iOffsetMinute
|
protected int |
iPresicion
|
protected int |
iSecond
|
protected int |
iYear
|
static int |
MILLI_FIVE_DIGIT_PRESICION
|
static int |
MILLI_FOUR_DIGIT_PRESICION
|
static int |
MILLI_ONE_DIGIT_PRESICION
|
static int |
MILLI_SIX_DIGIT_PRESICION
|
static int |
MILLI_THREE_DIGIT_PRESICION
|
static int |
MILLI_TWO_DIGIT_PRESICION
|
static int |
MINUTE_PRESICION
|
static int |
MONTH_PRESICION
|
static int |
SECOND_PRESICION
|
static int |
YEAR_PRESICION
|
Constructor Summary | |
---|---|
protected |
CIMDateTime()
|
|
CIMDateTime(java.util.Calendar pCalendar)
Deprecated. this constructor was marked as deprecated because the dual nature of this object. This object was used to represent point in time, as well as intervals. Instead of this constructor applications are encourage to use correspoding objects such as CIMDateTime, or CIMSimpleDateTime. |
|
CIMDateTime(java.lang.String pDateString)
Deprecated. this constructor was marked as deprecated because the dual nature of this object. This object was used to represent point in time, as well as intervals. Instead of this constructor applications are encourage to use correspoding objects such as CIMTimeInterval, or CIMSimpleDateTime. |
Method Summary | |
---|---|
boolean |
after(CIMDateTime pThat)
Determines if the current date time ocurrs after the date type from the specified object. |
boolean |
before(CIMDateTime pThat)
Determines if the current date time ocurrs after the date type from the specified object. |
java.lang.Object |
clone()
|
protected CIMDateTime |
clone(CIMDateTime pClone)
|
boolean |
equals(java.lang.Object o)
|
java.util.Calendar |
getCalendar()
Returns a calendar representation of this object. |
int |
getDay()
Gets the number of days specified for this CIMDateTime. |
int |
getHour()
Gets the number of hours specified for this CIMDateTime. |
int |
getMicrosecond()
Gets the number of microseconds specified for this CIMDateTime. |
int |
getMillisecodsPresicion()
Returns the number of presicion digits defined for milliseconds. |
int |
getMillisecond()
Gets the number of milliseconds specified for this CIMDateTime. |
int |
getMinute()
Gets the number of minutes specified for this CIMDateTime. |
int |
getOffsetMinute()
Gets the number of offset minutes specified for this CIMDateTime. |
int |
getPresicion()
Gets the presicion level of this CIMDateTime. |
int |
getSeconds()
Gets the number of seconds specified for this CIMDateTime. |
int |
hashCode()
|
boolean |
isDayPresicion()
Determines if this CIMDateTime has day presicion. |
boolean |
isHourPresicion()
Determines if this CIMDateTime has houre presicion. |
boolean |
isInterval()
Determines if the current object is represents an interval. |
boolean |
isMinutePresicion()
Determines if this CIMDateTime has minute presicion. |
boolean |
isMonthPresicion()
Determines if this CIMDateTime has month presicion. |
boolean |
isSecondPresicion()
Determines if this CIMDateTime has minute presicion. |
boolean |
isYearPresicion()
Determines if this CIMDateTime has year presicion. |
static void |
main(java.lang.String[] args)
|
void |
setHour(int pHour)
Specifies the number of hours for this CIMDateTime. |
void |
setMicroseconds(int pMicrosecond)
Gets the number of microseconds specified this CIMDateTime. |
void |
setMilliseconds(int pMillisecond)
Gets the number of milliseconds specified this CIMDateTime. |
void |
setMinute(int pMinute)
Specifies the number of minutes for this CIMDateTime. |
void |
setOffsetMinute(int pOffsetMinutes)
Sets the number of offset minutes associated with this CIMDateTime. |
void |
setPresicion(int pPrecision)
Specifies the presicion level for this CIMDateTime. |
void |
setSecond(int pSecond)
Sets the number of seconds for this CIMDateTime. |
protected java.lang.String |
starPadding(int pDigits)
|
java.lang.String |
toMOF()
Returns the MOF representation of this object. |
java.lang.String |
toString()
|
protected static CIMDateTime |
valueOf(CIMDateTime pDatetime,
java.lang.String pDateString)
|
static CIMDateTime |
valueOf(java.lang.String pDateString)
Creates an CIMDateTime object from the specified String argument. |
protected java.lang.String |
zeroPadding(int pValue,
int pDigits)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String iDateString
protected java.util.Calendar iCalendar
protected boolean iInterval
protected int iYear
protected int iMonth
protected int iDay
protected int iHour
protected int iMinute
protected int iSecond
protected int iMillisecond
protected int iMicrosecond
protected int iOffsetMinute
protected int iPresicion
public static final int YEAR_PRESICION
public static final int MONTH_PRESICION
public static final int DAY_PRESICION
public static final int HOUR_PRESICION
public static final int MINUTE_PRESICION
public static final int SECOND_PRESICION
public static final int MILLI_ONE_DIGIT_PRESICION
public static final int MILLI_TWO_DIGIT_PRESICION
public static final int MILLI_THREE_DIGIT_PRESICION
public static final int MILLI_FOUR_DIGIT_PRESICION
public static final int MILLI_FIVE_DIGIT_PRESICION
public static final int MILLI_SIX_DIGIT_PRESICION
public static final int FULL_PRESICION
Constructor Detail |
---|
public CIMDateTime(java.util.Calendar pCalendar)
pCalendar
- The calendarpublic CIMDateTime(java.lang.String pDateString)
pDateString
- A string representation of a datetimeprotected CIMDateTime()
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
protected CIMDateTime clone(CIMDateTime pClone)
public static CIMDateTime valueOf(java.lang.String pDateString)
pDateString
- The date string to parse
protected static CIMDateTime valueOf(CIMDateTime pDatetime, java.lang.String pDateString)
public int hashCode()
hashCode
in class java.lang.Object
public boolean after(CIMDateTime pThat)
pThat
- The datetime to compare with
true
if this
occurs after
pThat
, false
otherwisepublic boolean before(CIMDateTime pThat)
pThat
- The datetime to compare with
true
if this
occurs before
pThat
, false
otherwisepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isInterval()
public java.util.Calendar getCalendar()
public java.lang.String toMOF()
protected java.lang.String starPadding(int pDigits)
protected java.lang.String zeroPadding(int pValue, int pDigits)
public java.lang.String toString()
toString
in class java.lang.Object
public int getMillisecond()
public int getMicrosecond()
public int getMinute()
public int getDay()
public int getHour()
public int getOffsetMinute()
public int getSeconds()
public void setHour(int pHour)
pHour
- The hourpublic void setMilliseconds(int pMillisecond)
pMillisecond
- The millisecondspublic void setMicroseconds(int pMicrosecond)
pMicrosecond
- The microsencondspublic void setMinute(int pMinute)
pMinute
- The minutespublic void setOffsetMinute(int pOffsetMinutes)
pOffsetMinutes
- an integer value which species the number of offset minutes.
java.lang.IllegalArgumentException
- if the number of minutes is out of a valid range (-999,999)public void setSecond(int pSecond)
pSecond
- integer value which species the number of seconds.
java.lang.IllegalArgumentException
- if the number of seconds is out of a valid range.public boolean isDayPresicion()
public boolean isHourPresicion()
public int getMillisecodsPresicion()
public boolean isMinutePresicion()
public boolean isMonthPresicion()
public boolean isSecondPresicion()
public boolean isYearPresicion()
public void setPresicion(int pPrecision)
pPrecision
- specifies the presicion level for this object.public int getPresicion()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |