Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <19990922010644.7176.rocketmail@web1405.mail.yahoo.com> Date: Tue, 21 Sep 1999 18:06:44 -0700 (PDT) From: James Stern Reply-To: stern AT itginc DOT com Subject: timelocal() on Tues., Oct. 05, 1993 To: cygwin Cc: joseph AT itginc DOT com, "James M. Stern" MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii timelocal() is reporting the same result for two different times. My first thought was that this was related to a Daylight/Standard Time switchover but it happens on a Tuesday. I did this: % cat a.cc #include using std::cout; #include #include int main(int argc, char* argv[]) { tzset(); std::time_t now = std::atol(argv[1]); struct std::tm* const t = std::localtime(&now); cout << now << " " << std::asctime(t) << endl; return 0; } % cat script g++ a.cc ./a.exe 749804400 ./a.exe 749808000 # 1 hour later % ./script 749804400 Tue Oct 05 00:00:00 1993 749808000 Tue Oct 05 00:00:00 1993 I added the tzset() because it's mentioned in the FAQ. However, as I feared, it didn't help. === -- Opinions expressed above are not necessarily my employer's. James M. Stern ITG Inc. Culver City, CA (213) 270-7955 __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com