Click here to Skip to main content
15,890,186 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Function with default arguments Pin
Nyarlatotep3-Aug-06 3:07
Nyarlatotep3-Aug-06 3:07 
GeneralRe: Function with default arguments Pin
Zac Howland3-Aug-06 3:45
Zac Howland3-Aug-06 3:45 
GeneralRe: Function with default arguments Pin
Nyarlatotep3-Aug-06 3:48
Nyarlatotep3-Aug-06 3:48 
GeneralRe: Function with default arguments Pin
Zac Howland3-Aug-06 3:53
Zac Howland3-Aug-06 3:53 
AnswerRe: Function with default arguments Pin
Gary R. Wheeler3-Aug-06 3:12
Gary R. Wheeler3-Aug-06 3:12 
AnswerRe: Function with default arguments Pin
Zac Howland3-Aug-06 3:43
Zac Howland3-Aug-06 3:43 
AnswerRe: Function with default arguments Pin
David Crow3-Aug-06 4:34
David Crow3-Aug-06 4:34 
GeneralRe: Function with default arguments Pin
Gary R. Wheeler3-Aug-06 5:30
Gary R. Wheeler3-Aug-06 5:30 
AnswerRe: Function with default arguments Pin
Hamid_RT4-Aug-06 6:50
Hamid_RT4-Aug-06 6:50 
QuestionTime zones [modified] Pin
Nyarlatotep3-Aug-06 3:00
Nyarlatotep3-Aug-06 3:00 
QuestionRe: Time zones Pin
David Crow4-Aug-06 3:11
David Crow4-Aug-06 3:11 
AnswerRe: Time zones Pin
Nyarlatotep4-Aug-06 3:19
Nyarlatotep4-Aug-06 3:19 
GeneralRe: Time zones Pin
David Crow4-Aug-06 4:07
David Crow4-Aug-06 4:07 
GeneralRe: Time zones [modified] Pin
Nyarlatotep4-Aug-06 4:19
Nyarlatotep4-Aug-06 4:19 
QuestionRe: Time zones Pin
David Crow4-Aug-06 4:30
David Crow4-Aug-06 4:30 
AnswerRe: Time zones Pin
Nyarlatotep4-Aug-06 4:41
Nyarlatotep4-Aug-06 4:41 
GeneralRe: Time zones Pin
David Crow4-Aug-06 5:47
David Crow4-Aug-06 5:47 
I'm not sure what effect all of those other functions have on the date value, but I tried the following and got the correct output both times regardless of the value of tm_isdst:

struct tm now;
 
now.tm_sec   = 0;   /* seconds after the minute - [0,59] */
now.tm_min   = 0;   /* minutes after the hour - [0,59] */
now.tm_hour  = 15;  /* hours since midnight - [0,23] */
now.tm_mday  = 1;   /* day of the month - [1,31] */
now.tm_mon   = 5;   /* months since January - [0,11] */
now.tm_year  = 106; /* years since 1900 */
now.tm_wday  = 5;   /* days since Sunday - [0,6] */
now.tm_isdst = 1;
 
printf("%s", asctime(&now));
time_t t2 = mktime(&now);
printf("%s", ctime(&t2));
I guess I'm just not understanding your problem well enough.


"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

"Judge not by the eye but by the heart." - Native American Proverb


QuestionUntitled document/aplication?!!?! Pin
tanarnelinistit3-Aug-06 2:34
tanarnelinistit3-Aug-06 2:34 
AnswerRe: Untitled document/aplication?!!?! Pin
David Crow3-Aug-06 2:36
David Crow3-Aug-06 2:36 
AnswerRe: Untitled document/aplication?!!?! [modified] Pin
ovidiucucu3-Aug-06 2:57
ovidiucucu3-Aug-06 2:57 
GeneralRe: Untitled document/aplication?!!?! Pin
ovidiucucu3-Aug-06 3:21
ovidiucucu3-Aug-06 3:21 
Question[Message Deleted] Pin
Bravoone_20063-Aug-06 2:05
Bravoone_20063-Aug-06 2:05 
AnswerRe: IS WORKING BU ONLY LIKE THIS !!!!! BUT I DON T WANT THIS !!!! Pin
ovidiucucu3-Aug-06 2:17
ovidiucucu3-Aug-06 2:17 
AnswerRe: IS WORKING BU ONLY LIKE THIS !!!!! BUT I DON T WANT THIS !!!! Pin
Hamid_RT3-Aug-06 2:29
Hamid_RT3-Aug-06 2:29 
QuestionRe: IS WORKING BU ONLY LIKE THIS !!!!! BUT I DON T WANT THIS !!!! Pin
David Crow3-Aug-06 2:32
David Crow3-Aug-06 2:32 

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.