예제 #1
0
CMPIDateTime *newDateTime() 
{
	struct timeval tv;
	struct timezone tz;
	gettimeofday(&tv,&tz);
	return (CMPIDateTime*)
		new CMPI_Object(makeCIMDateTime(tv.tv_sec,tv.tv_usec,0));
}
예제 #2
0
   CMPIDateTime *newDateTime() {
      struct timeval tv;
#if defined (PEGASUS_OS_VMS)
      gettimeofday(&tv,NULL);
#else
      struct timezone tz;
      gettimeofday(&tv,&tz);
#endif
      return (CMPIDateTime*)new CMPI_Object(makeCIMDateTime(tv.tv_sec,tv.tv_usec,0));
   }
예제 #3
0
 CMPIDateTime *newDateTimeBin(CMPIUint64 tim, CMPIBoolean interval) {
    return (CMPIDateTime*)new CMPI_Object(makeCIMDateTime(tim/1000000,tim%1000000,interval));
 }