On Thu, 19 Aug 2010 10:26:15 +0200
"Enrico Maria Giordano" <e.m.giord...@emagsoftware.it> wrote:

> > Hello,
> >
> > The __DATE__ and __TIME__ variables in XCC always return Date and Time
> > in GMT. They does not honor TZ environment as what MSVC or GCC does.
> > (For a note: BCC and OpenWatcom do not honor TZ at all)
> >
> > Question: What do I have to change to get XCC return __DATE__ and
> > __TIME__ of local time?
> >
> > Snippet:
> > // --- begin ---
> > proc main()
> > test() // always show GMT ?
> >
> > #pragma begindump
> > #include "hbapi.h"
> > HB_FUNC(TEST)
> > {
> > printf("date=%s time=%s\n",__DATE__,__TIME__);
> > }
> > #pragma enddump
> > // --- end ---
> 
> Your sample works fine here using BCC 5.82.

yes, I too said that ("BCC and OpenWatcom do not honor TZ at all").. :-)
but, XCC will report different result regardless your TZ (Time Zone)
setting.
-- 
Andi


------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
xHarbour-developers mailing list
xHarbour-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xharbour-developers

Reply via email to