Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: a real problem i been facing in release mode Pin
Alan Balkany10-Jan-14 5:21
Alan Balkany10-Jan-14 5:21 
GeneralRe: a real problem i been facing in release mode Pin
jone2013214-Jan-14 7:22
jone2013214-Jan-14 7:22 
AnswerRe: a real problem i been facing in release mode Pin
jschell12-Jan-14 9:00
jschell12-Jan-14 9:00 
GeneralRe: a real problem i been facing in release mode Pin
jone2013214-Jan-14 7:25
jone2013214-Jan-14 7:25 
QuestionFile time issue Pin
_Flaviu7-Jan-14 0:55
_Flaviu7-Jan-14 0:55 
AnswerRe: File time issue Pin
Richard MacCutchan7-Jan-14 2:53
mveRichard MacCutchan7-Jan-14 2:53 
AnswerRe: File time issue Pin
Jochen Arndt7-Jan-14 3:02
professionalJochen Arndt7-Jan-14 3:02 
GeneralRe: File time issue Pin
_Flaviu7-Jan-14 21:45
_Flaviu7-Jan-14 21:45 
Unfortunately, I didn't succeeded, using below code:
C++
CTime time2(status.m_mtime);
time_t tt = time2.GetTime();
struct tm* timeinfo;
timeinfo = localtime(&tt);
time_t tt2 = mktime(timeinfo);
CTime time3(tt2);
SYSTEMTIME stUTC, stLocal;
time3.GetAsSystemTime(stUTC);
TIME_ZONE_INFORMATION tzi;
GetTimeZoneInformation(&tzi);
SystemTimeToTzSpecificLocalTime(&tzi, &stUTC, &stLocal);
CTime time4(stLocal);
TRACE("%d:%d\n", time4.GetHour(), time4.GetMinute());


the dates less than october 2013 is incremented by 3 hours, and date greater than october 2013 is incremented by 2 ... according by first post:

file1.bmp --- 16:2
file2.bmp --- 10:57
file3.bmp --- 12:39

I did something wrong ?

Last edit: the file system is NTFS.

modified 8-Jan-14 4:15am.

GeneralRe: File time issue Pin
Richard MacCutchan7-Jan-14 22:06
mveRichard MacCutchan7-Jan-14 22:06 
GeneralRe: File time issue Pin
Jochen Arndt7-Jan-14 22:39
professionalJochen Arndt7-Jan-14 22:39 
GeneralRe: File time issue Pin
_Flaviu8-Jan-14 1:14
_Flaviu8-Jan-14 1:14 
GeneralRe: File time issue Pin
Jochen Arndt8-Jan-14 1:33
professionalJochen Arndt8-Jan-14 1:33 
GeneralRe: File time issue Pin
_Flaviu8-Jan-14 1:44
_Flaviu8-Jan-14 1:44 
GeneralRe: File time issue Pin
Jochen Arndt8-Jan-14 2:13
professionalJochen Arndt8-Jan-14 2:13 
GeneralRe: File time issue [solved] Pin
_Flaviu9-Jan-14 2:11
_Flaviu9-Jan-14 2:11 
GeneralRe: File time issue [solved] Pin
Jochen Arndt9-Jan-14 3:30
professionalJochen Arndt9-Jan-14 3:30 
QuestionIncrement and Decrement Operators Pin
tgsb6-Jan-14 20:57
tgsb6-Jan-14 20:57 
AnswerRe: Increment and Decrement Operators PinPopular
Richard MacCutchan6-Jan-14 22:00
mveRichard MacCutchan6-Jan-14 22:00 
GeneralRe: Increment and Decrement Operators Pin
Suk@nta7-Jan-14 0:27
Suk@nta7-Jan-14 0:27 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 0:35
mveRichard MacCutchan7-Jan-14 0:35 
GeneralRe: Increment and Decrement Operators Pin
Marco Bertschi7-Jan-14 1:27
protectorMarco Bertschi7-Jan-14 1:27 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 2:48
mveRichard MacCutchan7-Jan-14 2:48 
GeneralRe: Increment and Decrement Operators Pin
Marco Bertschi7-Jan-14 9:41
protectorMarco Bertschi7-Jan-14 9:41 
GeneralRe: Increment and Decrement Operators Pin
Richard MacCutchan7-Jan-14 21:55
mveRichard MacCutchan7-Jan-14 21:55 
GeneralRe: Increment and Decrement Operators Pin
David Crow7-Jan-14 16:43
David Crow7-Jan-14 16:43 

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.