org.sblim.wbem.cim

Class CIMSimpleDateTime

Implemented Interfaces:
Cloneable, Serializable

public class CIMSimpleDateTime
extends CIMDateTime

CIMSimpleDateTime.java (C) Copyright IBM Corp. 2005 THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. You can obtain a current copy of the Common Public License from http://www.opensource.org/licenses/cpl1.0.php

Field Summary

Fields inherited from class org.sblim.wbem.cim.CIMDateTime

DAY_PRESICION, FULL_PRESICION, HOUR_PRESICION, MILLI_FIVE_DIGIT_PRESICION, MILLI_FOUR_DIGIT_PRESICION, MILLI_ONE_DIGIT_PRESICION, MILLI_SIX_DIGIT_PRESICION, MILLI_THREE_DIGIT_PRESICION, MILLI_TWO_DIGIT_PRESICION, MINUTE_PRESICION, MONTH_PRESICION, SECOND_PRESICION, YEAR_PRESICION, iCalendar, iDateString, iDay, iHour, iInterval, iMicrosecond, iMillisecond, iMinute, iMonth, iOffsetMinute, iPresicion, iSecond, iYear

Constructor Summary

CIMSimpleDateTime()
Constructs an CIMDataTime used to define a point in time.
CIMSimpleDateTime(Calendar pCalendar)
Constructs a CIMSimpleDateTime object from the given Calendar object.
CIMSimpleDateTime(String pDateString)
Constructs a CIMSimpleDateTime object from the specified String defining an date.

Method Summary

Object
clone()
int
getMonth()
Returns the month specified by this CIMDateTime.
int
getYear()
Returns the year specified by this CIMDateTime.
static void
main(String[] args)
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 org.sblim.wbem.cim.CIMDateTime

after, before, clone, clone, equals, getCalendar, getDay, getHour, getMicrosecond, getMillisecodsPresicion, getMillisecond, getMinute, getOffsetMinute, getPresicion, getSeconds, hashCode, isDayPresicion, isHourPresicion, isInterval, isMinutePresicion, isMonthPresicion, isSecondPresicion, isYearPresicion, main, setHour, setMicroseconds, setMilliseconds, setMinute, setOffsetMinute, setPresicion, setSecond, starPadding, toMOF, toString, valueOf, valueOf, zeroPadding

Constructor Details

CIMSimpleDateTime

public CIMSimpleDateTime()
Constructs an CIMDataTime used to define a point in time.

CIMSimpleDateTime

public CIMSimpleDateTime(Calendar pCalendar)
Constructs a CIMSimpleDateTime object from the given Calendar object.
Parameters:
pCalendar - A Calendar object

CIMSimpleDateTime

public CIMSimpleDateTime(String pDateString)
Constructs a CIMSimpleDateTime object from the specified String defining an date.
Parameters:
pDateString - A date string

Method Details

clone

public Object clone()
Overrides:
clone in interface CIMDateTime

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

main

public static void main(String[] args)
Overrides:
main in interface CIMDateTime

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

Copyright © 2005, 2006 IBM Corporation. All Rights Reserved.