Click here to Skip to main content
15,917,604 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Can not get current time. Pin
George214-May-03 3:02
George214-May-03 3:02 
GeneralRe: Can not get current time. Pin
jhaga14-May-03 3:08
professionaljhaga14-May-03 3:08 
GeneralRe: Can not get current time. Pin
George214-May-03 4:03
George214-May-03 4:03 
GeneralRe: Can not get current time. Pin
David Crow14-May-03 4:39
David Crow14-May-03 4:39 
GeneralRe: Can not get current time. Pin
George214-May-03 18:31
George214-May-03 18:31 
GeneralRe: Can not get current time. Pin
David Crow15-May-03 2:43
David Crow15-May-03 2:43 
GeneralRe: Can not get current time. Pin
George215-May-03 18:58
George215-May-03 18:58 
GeneralRe: Can not get current time. Pin
David Crow16-May-03 4:24
David Crow16-May-03 4:24 
Have you looked at the members of the TIME_ZONE_INFORMATION structure? It's straight forward math.

For example, I am in CST (GMT -0600) and we are currently in Daylight Saving Time. The members of that structure of interest to me are Bias (360) and DaylightBias (-60). The sum of these (300) added to my local time will produce GMT. So, if it is 0930 right now, adding 300 minutes (5 hours) to that means it is 1430 GMT. Make sense?

get local_time
if (dst)
    gmt = local_time + (bias + daylight bias)
else
    gmt = local_time + (bias + standard bias)
endif

GeneralRe: Can not get current time. Pin
George216-May-03 19:00
George216-May-03 19:00 
GeneralUrgent help please!!!!!!!!!!!!!!!!!! Pin
xxhimanshu14-May-03 2:01
xxhimanshu14-May-03 2:01 
GeneralRe: Urgent help please!!!!!!!!!!!!!!!!!! Pin
Franz Klein14-May-03 4:22
Franz Klein14-May-03 4:22 
GeneralRe: Urgent help please!!!!!!!!!!!!!!!!!! Pin
Joan M14-May-03 5:14
professionalJoan M14-May-03 5:14 
QuestionHow To Enumerate CMDIChildWnd's Opened at any Particular Instance Of Running Application Pin
Vikrant Vikrant14-May-03 1:29
Vikrant Vikrant14-May-03 1:29 
AnswerRe: How To Enumerate CMDIChildWnd's Opened at any Particular Instance Of Running Application Pin
basementman14-May-03 5:25
basementman14-May-03 5:25 
QuestionHow do I display a border around the client area?? Pin
IrishSonic14-May-03 1:28
IrishSonic14-May-03 1:28 
AnswerRe: How do I display a border around the client area?? Pin
John R. Shaw14-May-03 7:18
John R. Shaw14-May-03 7:18 
QuestionStack overflow when calling one DLL function often? Pin
Dominik Reichl14-May-03 1:23
Dominik Reichl14-May-03 1:23 
AnswerRe: Stack overflow when calling one DLL function often? Pin
Anonymous14-May-03 1:32
Anonymous14-May-03 1:32 
GeneralRe: Stack overflow when calling one DLL function often? Pin
Neville Franks14-May-03 1:34
Neville Franks14-May-03 1:34 
GeneralRe: Stack overflow when calling one DLL function often? Pin
Dominik Reichl14-May-03 4:02
Dominik Reichl14-May-03 4:02 
GeneralRe: Stack overflow when calling one DLL function often? Pin
Dominik Reichl14-May-03 4:09
Dominik Reichl14-May-03 4:09 
GeneralRe: Stack overflow when calling one DLL function often? Pin
Neville Franks14-May-03 11:10
Neville Franks14-May-03 11:10 
GeneralRe: Stack overflow when calling one DLL function often? Pin
Dominik Reichl14-May-03 20:22
Dominik Reichl14-May-03 20:22 
GeneralRe: Stack overflow when calling one DLL function often? Pin
Neville Franks14-May-03 22:32
Neville Franks14-May-03 22:32 
GeneralCaller ID compatible modems Pin
YSRao14-May-03 0:11
YSRao14-May-03 0:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.