Click here to Skip to main content
16,004,977 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Adding timezone to a COleDateTime object Pin
DimpleSurana22-Feb-04 18:47
DimpleSurana22-Feb-04 18:47 
GeneralRe: Adding timezone to a COleDateTime object Pin
David Crow20-Feb-04 3:33
David Crow20-Feb-04 3:33 
GeneralRe: Adding timezone to a COleDateTime object Pin
DimpleSurana20-Feb-04 3:39
DimpleSurana20-Feb-04 3:39 
GeneralRe: Adding timezone to a COleDateTime object Pin
David Crow20-Feb-04 3:48
David Crow20-Feb-04 3:48 
GeneralRe: Adding timezone to a COleDateTime object Pin
DimpleSurana20-Feb-04 3:55
DimpleSurana20-Feb-04 3:55 
GeneralRe: Adding timezone to a COleDateTime object Pin
David Crow20-Feb-04 5:48
David Crow20-Feb-04 5:48 
GeneralProblems with the new HTML Editing classes in MFC7 Pin
panzerdivisionmarkus19-Feb-04 20:37
panzerdivisionmarkus19-Feb-04 20:37 
Generaltime in ascii Pin
styve19-Feb-04 20:35
styve19-Feb-04 20:35 
I'm using time.h, to get time of the day. In my code it is converted into number so it is possible to read the time. But I will have it in ascii format.

I dont know how to do to get hour, min and sec into ascii. I will not have them converted into numbers.

My code:

time_t tid;
tm * ptm;
time(&tid);
ptm = gmtime(&tid);

struct timeval *Tps;
struct timezone *Tzp;

Tps = (struct timeval* ) malloc(sizeof(struct timeval));
Tzp = 0;

gettimeofday(Tps, Tzp);

hour = ptm->tm_hour; //become integers, will have ascii
min = ptm->tm_min;
sec = ptm ->tm_sec;


//Stefan
GeneralRe: time in ascii Pin
Maxwell Chen19-Feb-04 20:46
Maxwell Chen19-Feb-04 20:46 
GeneralRe: time in ascii Pin
styve19-Feb-04 21:09
styve19-Feb-04 21:09 
GeneralRe: time in ascii Pin
Maxwell Chen19-Feb-04 21:20
Maxwell Chen19-Feb-04 21:20 
GeneralRe: time in ascii Pin
styve20-Feb-04 2:20
styve20-Feb-04 2:20 
GeneralRe: time in ascii Pin
Prakash Nadar19-Feb-04 21:21
Prakash Nadar19-Feb-04 21:21 
GeneralRe: time in ascii Pin
styve20-Feb-04 2:24
styve20-Feb-04 2:24 
GeneralRe: time in ascii Pin
David Crow20-Feb-04 3:44
David Crow20-Feb-04 3:44 
GeneralMs WebBrowser GetSource! Pin
Alex H 198319-Feb-04 20:16
Alex H 198319-Feb-04 20:16 
GeneralTriggers in windows application ^_^!!! Pin
solostar***19-Feb-04 20:11
solostar***19-Feb-04 20:11 
Questionvisual c++ funny or its a bug? Pin
19-Feb-04 18:39
suss19-Feb-04 18:39 
AnswerRe: visual c++ funny or its a bug? Pin
Alex H 198319-Feb-04 20:49
Alex H 198319-Feb-04 20:49 
AnswerRe: visual c++ funny or its a bug? [Edited] Pin
Maxwell Chen19-Feb-04 20:52
Maxwell Chen19-Feb-04 20:52 
GeneralRe: visual c++ funny or its a bug? Pin
DimpleSurana19-Feb-04 20:59
DimpleSurana19-Feb-04 20:59 
GeneralRe: visual c++ funny or its a bug? [Edited] Pin
Abin19-Feb-04 21:23
Abin19-Feb-04 21:23 
GeneralRe: visual c++ funny or its a bug? [Edited] Pin
Sebastian Schneider19-Feb-04 21:46
Sebastian Schneider19-Feb-04 21:46 
GeneralRe: visual c++ funny or its a bug? [Edited] Pin
Alex H 198319-Feb-04 21:46
Alex H 198319-Feb-04 21:46 
GeneralRe: visual c++ funny or its a bug? [Edited] Pin
Maxwell Chen19-Feb-04 21:47
Maxwell Chen19-Feb-04 21:47 

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.