public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/54203] New: ctime on INT_MAX returns wrong date
@ 2012-08-08 17:37 aminalipour at gmail dot com
  2012-08-08 17:46 ` [Bug c/54203] " aminalipour at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: aminalipour at gmail dot com @ 2012-08-08 17:37 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54203

             Bug #: 54203
           Summary: ctime on INT_MAX returns wrong date
    Classification: Unclassified
           Product: gcc
           Version: 4.4.6
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: aminalipour@gmail.com


main(){
  time_t t = INT_MAX;
  char *s = ctime(&t);
  printf("%s", s);
}
returns:
Mon Jan 18 19:14:07 2038

but my computer calendar shows that Jan 18, 2038 is Tuesday!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/54203] ctime on INT_MAX returns wrong date
  2012-08-08 17:37 [Bug c/54203] New: ctime on INT_MAX returns wrong date aminalipour at gmail dot com
@ 2012-08-08 17:46 ` aminalipour at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: aminalipour at gmail dot com @ 2012-08-08 17:46 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54203

Amin <aminalipour at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #1 from Amin <aminalipour at gmail dot com> 2012-08-08 17:46:08 UTC ---
  It was a mistake!


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-08 17:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-08 17:37 [Bug c/54203] New: ctime on INT_MAX returns wrong date aminalipour at gmail dot com
2012-08-08 17:46 ` [Bug c/54203] " aminalipour at gmail dot com

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).