Class CIMSimpleDateTime
java.lang.Object
org.sblim.wbem.cim.CIMDateTime
org.sblim.wbem.cim.CIMSimpleDateTime
- All Implemented Interfaces:
Serializable, Cloneable
- See Also:
-
Field Summary
Fields inherited from class CIMDateTime
DAY_PRECISION, FULL_PRECISION, HOUR_PRECISION, iCalendar, iDateString, iDay, iHour, iInterval, iMicrosecond, iMillisecond, iMinute, iMonth, iOffsetMinute, iPrecision, iSecond, iYear, MILLI_FIVE_DIGIT_PRECISION, MILLI_FOUR_DIGIT_PRECISION, MILLI_ONE_DIGIT_PRECISION, MILLI_SIX_DIGIT_PRECISION, MILLI_THREE_DIGIT_PRECISION, MILLI_TWO_DIGIT_PRECISION, MINUTE_PRECISION, MONTH_PRECISION, SECOND_PRECISION, YEAR_PRECISION
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an CIMDataTime used to define a point in time.CIMSimpleDateTime
(String pDateString) Constructs a CIMSimpleDateTime object from the specified String defining an date.CIMSimpleDateTime
(Calendar pCalendar) Constructs a CIMSimpleDateTime object from the given Calendar object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
getMonth()
Returns the month specified by this CIMDateTime.int
getYear()
Returns the year specified by this CIMDateTime.static void
void
setDay
(int pDay) Specifies the day of this CIMDateTime.void
setMonth
(int pMonth) Specifies the month for this CIMDateTime.void
setYear
(int pYear) Specifies the year for this CIMDateTime.Methods inherited from class CIMDateTime
after, before, clone, equals, getCalendar, getDay, getHour, getMicrosecodsPrecision, getMicrosecond, getMillisecond, getMinute, getOffsetMinute, getPrecision, getSeconds, hashCode, isDayPrecision, isHourPrecision, isInterval, isMinutePrecision, isMonthPrecision, isSecondPrecision, isYearPrecision, setHour, setMicroseconds, setMilliseconds, setMinute, setOffsetMinute, setPrecision, setSecond, starPadding, toMOF, toString, valueOf, valueOf, zeroPadding
-
Constructor Details
-
CIMSimpleDateTime
public CIMSimpleDateTime()Constructs an CIMDataTime used to define a point in time. -
CIMSimpleDateTime
Constructs a CIMSimpleDateTime object from the specified String defining an date.- Parameters:
pDateString
- A date string
-
CIMSimpleDateTime
Constructs a CIMSimpleDateTime object from the given Calendar object.- Parameters:
pCalendar
- A Calendar object
-
-
Method Details
-
getMonth
public int getMonth()Returns the month specified by this CIMDateTime.- Returns:
- The month
-
getYear
public int getYear()Returns the year specified by this CIMDateTime.- Returns:
- The year
-
setDay
public void setDay(int pDay) Specifies the day of this CIMDateTime.- Parameters:
pDay
- The day
-
setMonth
public void setMonth(int pMonth) Specifies the month for this CIMDateTime.- Parameters:
pMonth
- The month
-
setYear
public void setYear(int pYear) Specifies the year for this CIMDateTime.- Parameters:
pYear
- The year
-
clone
- Overrides:
clone
in classCIMDateTime
-
main
-