class Cmpi::CMPIDateTime
Date and Time
Public Instance Methods
is_interval()
click to toggle source
Tests whether DateTime is an interval value.
int is_interval() {
return CMIsInterval($self, NULL);
}
}
to_i()
click to toggle source
Return integer representation in miliseconds since the epoch
uint64_t to_i() {
return CMGetBinaryFormat($self, NULL);
}
%rename("interval?") is_interval;
/* Tests whether DateTime is an interval value. */
int is_interval() {
return CMIsInterval($self, NULL);
}
}
to_s()
click to toggle source
const char* string() {
CMPIString *s = CMGetStringFormat($self, NULL);
const char *result = strdup(CMGetCharPtr(s));
CMRelease(s);
return result;
}
/* Return integer representation in miliseconds since the epoch */
uint64_t to_i() {
return CMGetBinaryFormat($self, NULL);
}
%rename("interval?") is_interval;
/* Tests whether DateTime is an interval value. */
int is_interval() {
return CMIsInterval($self, NULL);
}
}