J
Danke... - hab's nun selbst hinbekommen (Du hast recht, mit COleDateTime klappt's wesentlich besser)
Hier mein Code:
// Aktuelle Systemzeit (Datum + Uhrzeit) besorgen
m_tLocalTime = COleDateTime::GetCurrentTime();
// Destination Systemzeit (Datum + Uhrzeit) besorgen
DWORD dwResult;
dwResult = m_cDatePicker.GetTime(m_tDestinationTime);
int nYear = m_tDestinationTime.GetYear();
int nMonth = m_tDestinationTime.GetMonth();
int nDay = m_tDestinationTime.GetDay();
dwResult = m_cTimePicker.GetTime(m_tDestinationTime);
int nHour = m_tDestinationTime.GetHour();
int nMin = m_tDestinationTime.GetMinute();
int nSec = m_tDestinationTime.GetSecond();
m_tDestinationTime.SetDateTime(nYear, nMonth, nDay, nHour, nMin, nSec);
m_tDateTimeSpan = m_tDestinationTime - m_tLocalTime;