int hour = __pCalendar->GetTimeField(TIME_FIELD_HOUR_OF_DAY);
int minute = __pCalendar->GetTimeField(TIME_FIELD_MINUTE);
int second = __pCalendar->GetTimeField(TIME_FIELD_SECOND);
+ int millisec = __pCalendar->GetTimeField(TIME_FIELD_MILLISECOND);
DateTime dateTime;
- result r = dateTime.SetValue(year, month, date, hour, minute, second);
+ result r = dateTime.SetValue(year, month, date, hour, minute, second, millisec);
SysTryReturn(NID_LCL, r == E_SUCCESS, DateTime(), r, "[%s] Unable to set time in DateTime object", GetErrorMessage(r));
return dateTime;