-----Messaggio Originale----- Da: "Andi Jahja" <xharb...@telkom.net.id> A: <xharbour-developers@lists.sourceforge.net> Data invio: mercoledì 18 agosto 2010 11.06 Oggetto: [xHarbour-developers] XCC Question
> 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. EMG -- EMAG Software Homepage: http://www.emagsoftware.it The EMG's ZX-Spectrum Page: http://www.emagsoftware.it/spectrum The Best of Spectrum Games: http://www.emagsoftware.it/tbosg The EMG Music page: http://www.emagsoftware.it/emgmusic ------------------------------------------------------------------------------ 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