version 1.23, 2002/05/09 21:38:20
|
version 1.24, 2002/05/14 04:57:48
|
|
|
the Java rep is probably tostring, not get string, | the Java rep is probably tostring, not get string, |
*/ | */ |
| |
|
class CIMDateTimeRep; |
|
|
/** | /** |
The CIMDateTime class represents the CIM datetime data type as a C++ class | The CIMDateTime class represents the CIM datetime data type as a C++ class |
CIMDateTime. A CIM datetime may contain a date or an interval. CIMDateTime | CIMDateTime. A CIM datetime may contain a date or an interval. CIMDateTime |
|
|
*/ | */ |
void clear(); | void clear(); |
| |
|
/** Makes a deep copy (clone) of the given object. */ |
|
CIMDateTime clone() const; |
|
|
/** | /** |
Get current time as CIMDateTime. The time returned is the local time. | Get current time as CIMDateTime. The time returned is the local time. |
| |
|
|
| |
private: | private: |
| |
enum { FORMAT_LENGTH = 25 }; |
CIMDateTimeRep* _rep; |
|
|
char _rep[FORMAT_LENGTH + 1]; |
|
| |
#ifdef PEGASUS_INTERNALONLY | #ifdef PEGASUS_INTERNALONLY |
// |
|
// Length of the string required to store only the date and time without |
|
// the UTC sign and UTC offset. |
|
// Format is yyyymmddhhmmss. |
|
// Note : The size does not include the null byte. |
|
// |
|
enum { DATE_TIME_LENGTH = 14 }; |
|
|
|
// |
|
// Length of the string required to store the formatted date and time |
|
// Format is yyyy:mm:dd:hh:mm:ss. |
|
// |
|
enum { FORMATTED_DATE_TIME = 20 }; |
|
|
|
Boolean _set(const char* str); | Boolean _set(const char* str); |
| |
/** | /** |