From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9343 invoked by alias); 31 Jul 2013 03:48:55 -0000 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org Received: (qmail 9291 invoked by uid 48); 31 Jul 2013 03:48:52 -0000 From: "380374483 at qq dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/15808] New: localtime operator error Date: Wed, 31 Jul 2013 03:48:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.17 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: 380374483 at qq dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-07/txt/msg00183.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15808 Bug ID: 15808 Summary: localtime operator error Product: glibc Version: 2.17 Status: NEW Severity: normal Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: 380374483 at qq dot com CC: drepper.fsp at gmail dot com Created attachment 7129 --> http://sourceware.org/bugzilla/attachment.cgi?id=7129&action=edit code and result picture please see the attachment time_t t1 = 589546905 + 100 * 3600; time_t t2 = 589546905 + 99 * 3600; tm tm1,tm2; localtime_r(&t1,&tm1); localtime_r(&t2,&tm2); the result is the same result: time_t = 589906905 year = 1988 mon = 9 mday = 10 wday = 6 hour = 23 min = 1 sec = 45 time_t = 589903305 year = 1988 mon = 9 mday = 10 wday = 6 hour = 23 min = 1 sec = 45 -- You are receiving this mail because: You are on the CC list for the bug.