I don't have the CTime for this!
-
Greetings, I was led to believe that SYSTEMTIME is a UTC time. Why then when I set my clock to the timezone (Baku GMT +04:00) with dayliight savings on (I have advanced to July 2007 so DST is in effect) i call CTime::GetAsSystemTime() I get the local time in the wHour, wMinute etc... structure members? SYSTEMTIME myTime; CTime temp= CTime::GetCurrentTime(); temp.GetAsSystemTime(myTime); Eventually all i want to do is given the Local Date/Time get the Local Date/Time @GMT Start of Day e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 19.00am (GMT +4:00 DST).
-
Greetings, I was led to believe that SYSTEMTIME is a UTC time. Why then when I set my clock to the timezone (Baku GMT +04:00) with dayliight savings on (I have advanced to July 2007 so DST is in effect) i call CTime::GetAsSystemTime() I get the local time in the wHour, wMinute etc... structure members? SYSTEMTIME myTime; CTime temp= CTime::GetCurrentTime(); temp.GetAsSystemTime(myTime); Eventually all i want to do is given the Local Date/Time get the Local Date/Time @GMT Start of Day e.g. for Local Time 12th July 2007 3:00am (GMT +4:00 DST), the GMT day actually started on 11th July 19.00am (GMT +4:00 DST).