javax.cim

Class CIMDateTime

public abstract class CIMDateTime extends Object implements Serializable, Comparable

The CIMDateTime class is modeled on the datetime data type as specified in the CIM specification.
It is in the format: yyyyMMddHHmmss.SSSSSSsutc where: For example, an elapsed time of 1 day, 13 hours, 23 minutes, 12 seconds would be: 00000001132312.000000:000 A UTC offset of zero is always used for interval properties.
Constructor Summary
CIMDateTime(String dateString)
Creates a CIMDateTime object using a string.
protected CIMDateTime()
Method Summary
booleanequals(Object pObj)
abstract StringgetDateTimeString()
Gets the internal string representation of this object.
abstract inthashCode()
Returns the hashcode for this object.

Constructor Detail

CIMDateTime

public CIMDateTime(String dateString)
Creates a CIMDateTime object using a string.

Parameters: dateString - A string in the format of yyyyMMddHHmmss.SSSSSSsutc

Throws: IllegalArgumentException - If string is not in the correct format.

CIMDateTime

protected CIMDateTime()

Method Detail

equals

public boolean equals(Object pObj)

See Also: java.lang.Object#equals(java.lang.Object)

getDateTimeString

public abstract String getDateTimeString()
Gets the internal string representation of this object.

Returns: The internal representation of the CIMDateTime object.

hashCode

public abstract int hashCode()
Returns the hashcode for this object.

Returns: The hashcode for this object.

See Also: java.lang.Object#hashCode()

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