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

C / C++ / MFC

 
QuestionRe: MJPEG Enc/Decoding Pin
David Crow25-Aug-05 8:28
David Crow25-Aug-05 8:28 
AnswerRe: MJPEG Enc/Decoding Pin
Galootka27-Aug-05 2:46
Galootka27-Aug-05 2:46 
GeneralRe: MJPEG Enc/Decoding Pin
Galootka27-Aug-05 9:01
Galootka27-Aug-05 9:01 
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 
Hi all,
How am I going to change the given time to given time zone and get the converted time in string format?

let's say.
gmt = +06:30 and giving time dt is in different time zone

following function that I wrote is totally wrong. it is not giving me the correct time string in the given time zone.

CString convertTime(int gmt,COleDateTime dt)
{
COleDateTime formatedDateTime;
COleDateTimeSpan timeSpan(0,gmt,0,0);
formatedDateTime = dt + timeSpan;
dtStr = formatedDateTime.Format("%Y-%m-%d %H:%M:%S");
return dtStr;
}



Thank you so much for your help.

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 
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 

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.