org.sblim.wbem.cim

Class CIMTimeInterval

Implemented Interfaces:
Cloneable, Serializable

public class CIMTimeInterval
extends CIMDateTime

CIMTimeInterval.java (C) Copyright IBM Corp. 2005, 2006 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

CIMTimeInterval()
Construct an object of a CIMTimeInterval.
CIMTimeInterval(String pTimeString)
Constructs an object of CIMTimeInterval for a given String that defines a valid interval.

Method Summary

protected static String
convertSecondsToCIMInterval(int intervalInSeconds)
static void
main(String[] args)
void
setDay(int pDay)
Specifies the number of days associated with this interval of time.

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

CIMTimeInterval

public CIMTimeInterval()
Construct an object of a CIMTimeInterval.

CIMTimeInterval

public CIMTimeInterval(String pTimeString)
Constructs an object of CIMTimeInterval for a given String that defines a valid interval.
Parameters:
pTimeString - The time interval string

Method Details

convertSecondsToCIMInterval

protected static String convertSecondsToCIMInterval(int intervalInSeconds)

main

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

setDay

public void setDay(int pDay)
Specifies the number of days associated with this interval of time.
Parameters:
pDay - A valid day of month (1<=pDay<=31)

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