public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "$Bill Luebkert" <dbe@wgn.net>
To: Keet / Foxbird <Keetnet@wilmington.net>
Cc: Earnie Boyd <earnie_boyd@hotmail.com>, gnu-win32@cygnus.com
Subject: Re: Time Functions?
Date: Wed, 22 Oct 1997 02:40:00 -0000	[thread overview]
Message-ID: <344DC9EA.FE35C0A7@wgn.net> (raw)
In-Reply-To: <3.0.32.19971021175114.00690990@wilmington.net>

Keet /
Foxbird
wrote:
> 
> At 05:39 AM 10/21/97 PDT, Earnie Boyd wrote:
> >
> >
> >How about the date?  It sounds to me as if WIN95 is reporting Daylight
> >Savings Time and the function is returning Standard Time.
> >
> 
> Just ran the server again to test and report back. The server reports the
> following:
> 
> ------------------STARTING SERVER: 10-21-1997 at 15:59:19------------------
> 
> My computer clock at that exact moment reports 16:59:19 10-21-1997.
> 
> My current configuration for Win95 is as follows:
> 'English' Regional Setting
> Auto Adjust for daylight savings time.
> Can't find a daylight savings time enable/disable option anywhere (BIOS too)
> Eastern US Timezone (-0500 GMT)
> Original Beta 18 (Not the coolview extensions)
> 
> What follows is a breif little snippet that reproduces the problem, at
> least on my end.
> 
> /* TIMETEST.CPP - Produces a time that is one hour behind the correct time
>  *                on a Win95 machine running B18
>  */
> 
> #include <stdlib.h>
> #include <stdio.h>
> #include <time.h>
> 
> main () {
>    time_t        st_t;
>    struct tm     *st_tm;
>    char*         DTarray[2];
>    st_t  = time(0);
>    st_tm = localtime(&st_t);
> 
>    DTarray[0] = (char*)malloc(sizeof(char)*20);
>    strftime(DTarray[0],15,"%m-%d-%Y",st_tm);
> 
>    DTarray[1] = (char*)malloc(sizeof(char)*20);
>    strftime(DTarray[1],15,"%H:%M:%S",st_tm);
> 
> 
>    printf("------------------STARTING SERVER: %s at
> %s",DTarray[0],DTarray[1]);
>    printf("------------------\n", NULL);
> 
>    return 0;
> }
> 
> // **END FILE**
> 
> Another thing I noticed, is that if you have a CYGWIN.DLL in your path, and
> then another in the current directory that your working in, and then
> execute c++, gcc, or any of the compilers, it goes berzerk and throws up
> one of those 'cygwin_except_handler' errors and causes a fatal exception
> error and demands the program be shut down. Just something strange I
> noticed while compiling this little test program.
> 
> Again, any ideas on how to fix these problems, or just suggestions, I'm
> open to try just about anything. Thanks in advance for the help.

If you
print out
tm_isdst,
you get 0
on Win95
which is
wrong, it
should be
1.
Somehow
the
library
isn't
picking up
on the
fact that
DST is in
effect.
I'm not
familiar
enough
with the
code to go
find where
the
problem
is.

-- 
  ,-/- 
__      _ 
_        
$Bill
Luebkert
 (_/   / 
)    //
//      
DBE
Collectibles
  / )
/--<  o //
//     
http://www.wgn.net/~dbe/
-/-'
/___/_<_</_</_   
Email:
dbe@wgn.net
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

  reply	other threads:[~1997-10-22  2:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-21 14:54 Keet / Foxbird
1997-10-22  2:40 ` $Bill Luebkert [this message]
1997-10-22 20:35 ` Fernandes, Hilton
  -- strict thread matches above, loose matches on Subject: below --
1997-10-23  3:54 Keet / Foxbird
1997-10-22 23:18 Sergey Okhapkin
1997-10-21  5:39 Earnie Boyd
1997-10-21  3:41 Keet / Foxbird

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=344DC9EA.FE35C0A7@wgn.net \
    --to=dbe@wgn.net \
    --cc=Keetnet@wilmington.net \
    --cc=earnie_boyd@hotmail.com \
    --cc=gnu-win32@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).