Mail Archives: cygwin/1998/11/05/11:08:36
The definitive answer:
In order to use the _timezone variable you must explicitly call tzset().
E.G.:
#include <stdio.h>
#include <time.h>
int
main (void)
{
tzset();
printf( "timezone: %d\n", _timezone );
}
---Keet / Foxbird <Keetnet AT wilmington DOT net> wrote:
>
> At 05:52 AM 11/3/98 -0800, Earnie Boyd wrote:
> >
> >I believe that the SECSPERMIN macro is set to zero. It is not
defined
> >in any header file and the fact that zero times something is always
> >zero.
> >
>
> Sorry I didn't include that, but it's way up top of the times.cc
file in
> the source of the winsup directory for cygwin, I just didn't catch
it. But
> even if I do add the define SECSPERMIN to the top of my program, or
> anywhere else, it still doesn't do any good.
>
> Anyone have any more ideas? Every bit is greatly appreciated as it
just
> might fix the problem.
>
> - Greg Neujahr
> keetnet AT wilmington DOT net
>
>
> \---------------------------------------------\
> \ Keet | Keetnet AT wilmington DOT net \
> \---------------------------------------------\
> \ http://localsonly.wilmington.net/~keetnet/ \-\
> \---------------------------------------------\ \
> \ Visit MoonGlow MUCK at moonglow.dyn.ml.org \
> \ on port 8888, or visit our webpage at: \
> /--\ http://www.moonglow.dyn.ml.org \
> / \---------------------------------------------\
> / Furry Code 1.2: /
> / FCF6fmsw A-- C- D+ H++ M+++ P+ R+ /
> / T++++ W Z Sm++ RL# a# cn++ d+ e# f++++ h# /
> / iwf++>+++ p* sm# /
> /---------------------------------------------/
>
==
- \\||//
-------------o0O0--Earnie--0O0o--------------
-- earnie_boyd AT yahoo DOT com --
-- http://www.freeyellow.com/members5/gw32 --
----------------ooo0O--O0ooo-----------------
PS: Newbie's, you should visit my page.
_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -