Click here to Skip to main content
16,010,334 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MJPEG Enc/Decoding Pin
David Crow28-Aug-05 4:43
David Crow28-Aug-05 4:43 
GeneralRe: MJPEG Enc/Decoding Pin
Galootka28-Aug-05 4:46
Galootka28-Aug-05 4:46 
GeneralRe: MJPEG Enc/Decoding Pin
David Crow30-Aug-05 9:13
David Crow30-Aug-05 9:13 
AnswerRe: MJPEG Enc/Decoding Pin
Chris Losinger25-Aug-05 9:50
professionalChris Losinger25-Aug-05 9:50 
Questionconverting time Pin
pnpfriend25-Aug-05 5:22
pnpfriend25-Aug-05 5:22 
AnswerRe: converting time Pin
David Crow25-Aug-05 6:00
David Crow25-Aug-05 6:00 
AnswerRe: converting time Pin
Rage25-Aug-05 6:30
professionalRage25-Aug-05 6:30 
GeneralRe: converting time Pin
pnpfriend25-Aug-05 12:53
pnpfriend25-Aug-05 12:53 
Thank you David and Rage for your replies.

I look at gmtime() and it is seems like what I need to use. But dont' really know how to comvert COleDateTime dt to given gmt time.

here what I have..

CString converttime(CString gmt,COleDateTime dt)
{
//let's say gmt="+03:30" and dt = aug 25,2005 6:58pm
//the converted time should be dt3 = aug 26,2005 3:28 am

int hr,min;
CString hrStr,minStr, sign;
int pos = 2;

sign = gmt.GetAt(0);
minStr = gmt.Right(gmt.GetLength()- (pos+1));
hrStr = gmt.Left(pos);
hr = atoi(hrStr);
min = atoi(minStr);

COleDateTime dt2(0,0,0,hr,min,0);
COleDateTime dtDiff = dt+dt2;
}

I got it wrong again.. how can I convert it the given time to the given GMT time that has + and - time?


Thank you so much for your help.


-- modifed at 18:54 Thursday 25th August, 2005
QuestionPipes in Device Drivers Pin
gamitech25-Aug-05 5:15
gamitech25-Aug-05 5:15 
QuestionEclipse compared to VC? Pin
Moak25-Aug-05 4:42
Moak25-Aug-05 4:42 
AnswerRe: Eclipse compared to VC? Pin
David Crow25-Aug-05 5:04
David Crow25-Aug-05 5:04 
GeneralRe: Eclipse compared to VC? Pin
Moak25-Aug-05 21:26
Moak25-Aug-05 21:26 
GeneralRe: Eclipse compared to VC? Pin
Nemanja Trifunovic26-Aug-05 2:29
Nemanja Trifunovic26-Aug-05 2:29 
GeneralRe: Eclipse compared to VC? Pin
Moak__27-Aug-05 6:29
sussMoak__27-Aug-05 6:29 
GeneralRe: Eclipse compared to VC? Pin
David Crow26-Aug-05 2:38
David Crow26-Aug-05 2:38 
GeneralRe: Eclipse compared to VC? Pin
Moak__27-Aug-05 6:40
sussMoak__27-Aug-05 6:40 
QuestionCoons Surface problem pls Help Pin
Ganesh(IT Monster)25-Aug-05 3:54
Ganesh(IT Monster)25-Aug-05 3:54 
QuestionScrolling in a CHtmlView object Pin
al_in_the_city25-Aug-05 3:53
al_in_the_city25-Aug-05 3:53 
QuestionProblem with fprintf and ASCII Pin
IronMike25-Aug-05 3:33
IronMike25-Aug-05 3:33 
AnswerRe: Problem with fprintf and ASCII Pin
David Crow25-Aug-05 3:41
David Crow25-Aug-05 3:41 
AnswerRe: Problem with fprintf and ASCII Pin
kakan25-Aug-05 3:59
professionalkakan25-Aug-05 3:59 
GeneralRe: Problem with fprintf and ASCII Pin
David Crow25-Aug-05 4:15
David Crow25-Aug-05 4:15 
GeneralRe: Problem with fprintf and ASCII Pin
kakan25-Aug-05 19:13
professionalkakan25-Aug-05 19:13 
GeneralRe: Problem with fprintf and ASCII Pin
David Crow26-Aug-05 2:32
David Crow26-Aug-05 2:32 
GeneralRe: Problem with fprintf and ASCII Pin
IronMike25-Aug-05 19:20
IronMike25-Aug-05 19:20 

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.