Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Variable Length Function parameter list Pin
Todd Smith7-Jan-02 12:33
Todd Smith7-Jan-02 12:33 
GeneralRe: Variable Length Function parameter list Pin
Nish Nishant7-Jan-02 18:34
sitebuilderNish Nishant7-Jan-02 18:34 
Generalchanging read-only CEdit background color Pin
Kuniva7-Jan-02 9:36
Kuniva7-Jan-02 9:36 
GeneralRe: changing read-only CEdit background color Pin
Joaquín M López Muñoz7-Jan-02 10:19
Joaquín M López Muñoz7-Jan-02 10:19 
GeneralRe: changing read-only CEdit background color Pin
Tim Deveaux7-Jan-02 10:30
Tim Deveaux7-Jan-02 10:30 
GeneralStored procedure ADO Pin
youssef7-Jan-02 8:35
youssef7-Jan-02 8:35 
GeneralSetMenuItemBitmaps() and GetSystemMetrics() Pin
7-Jan-02 8:25
suss7-Jan-02 8:25 
GeneralCTime, strftime, Format, %z/%Z Pin
Tomasso7-Jan-02 6:44
Tomasso7-Jan-02 6:44 
I am experiencing a problem with time formatting that I'm hoping someone else has encountered and perhaps has some advice.

In a nutshell, with either CTime::Format() or strftime(), the timezone specifier does not work properly -- both %z and %Z return the full name of the time zone. (%z should represent the abbreviated name, e.g. CST and %Z should represent the full name, e.g. Central Standard Time).

In the following example, both would return the exact same string (well, OK, there would be a slight time difference):

CTime time(CTime::GetCurrentTime());
CString cstrDateA = time.Format("%a, %d %b %Y %H:%M:%S %z");
CString cstrDateB = time.Format("%a, %d %b %Y %H:%M:%S %Z");

My development setup:
Windows 2000
Visual Studio 6.0 Enterprise Edition (with latest service pack)



"If ye love wealth better than liberty, the tranquility of servitude better than the animating contest of freedom, go home from us in peace. We ask not your counsels or your arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."

--Samuel Adams
GeneralRe: CTime, strftime, Format, %z/%Z Pin
Mike Eriksson8-Jan-02 0:03
Mike Eriksson8-Jan-02 0:03 
GeneralWebBrowser-Control: FileDownload-Event Pin
7-Jan-02 5:46
suss7-Jan-02 5:46 
GeneralUNICODE file I/O Pin
7-Jan-02 5:15
suss7-Jan-02 5:15 
GeneralRe: UNICODE file I/O Pin
7-Jan-02 5:55
suss7-Jan-02 5:55 
GeneralEmbed objects with custom icons in a CRichEditCtrl Pin
7-Jan-02 3:45
suss7-Jan-02 3:45 
GeneralAdding buttons Pin
Rickard Andersson207-Jan-02 3:07
Rickard Andersson207-Jan-02 3:07 
GeneralHelp with CRectTracker Pin
Eugene Pustovoyt7-Jan-02 2:02
Eugene Pustovoyt7-Jan-02 2:02 
GeneralRe: Help with CRectTracker Pin
Roger Allen7-Jan-02 4:43
Roger Allen7-Jan-02 4:43 
GeneralRe: Help with CRectTracker Pin
Eugene Pustovoyt7-Jan-02 19:29
Eugene Pustovoyt7-Jan-02 19:29 
GeneralRe: Help with CRectTracker Pin
7-Jan-02 17:24
suss7-Jan-02 17:24 
GeneralRe: Help with CRectTracker Pin
Eugene Pustovoyt7-Jan-02 19:34
Eugene Pustovoyt7-Jan-02 19:34 
GeneralReverse engineering Pin
Jon Newman7-Jan-02 1:19
Jon Newman7-Jan-02 1:19 
GeneralRe: Reverse engineering Pin
Jon Sagara7-Jan-02 1:32
Jon Sagara7-Jan-02 1:32 
GeneralRe: Reverse engineering Pin
Tim Smith7-Jan-02 1:58
Tim Smith7-Jan-02 1:58 
QuestionUpdate for Microsoft eMbedded Tools 3.0? Pin
Jasmyn7-Jan-02 0:28
Jasmyn7-Jan-02 0:28 
AnswerRe: Update for Microsoft eMbedded Tools 3.0? Pin
Nish Nishant7-Jan-02 0:32
sitebuilderNish Nishant7-Jan-02 0:32 
AnswerRe: Update for Microsoft eMbedded Tools 3.0? Pin
Gert Boddaert7-Jan-02 2:08
Gert Boddaert7-Jan-02 2:08 

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.