public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "gccbugz at k1k2 dot com" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/15162] New: GregorianCalendar skips 2004 Feb 29
Date: Tue, 27 Apr 2004 08:13:00 -0000	[thread overview]
Message-ID: <20040427081330.15162.gccbugz@k1k2.com> (raw)

A simple program to create a GregorianCalendar with year=2004, month=1, day=29
gives 2004-Mar-1 instead of 2004-Feb-29
e.g.
SimpleDateFormat sdf = new SimpleDateFormat("yyyy MMMMM d HH:mm:ss");
GregorianCalendar gc = new GregorianCalendar(2004, 1, 29, 0, 0, 0);
System.out.println(sdf.format(gc.getTime()) + " " + gc.getTimeInMillis());

(Sun j2sdk 1.4.2 gives 2004-Feb-29)

-- 
           Summary: GregorianCalendar skips 2004 Feb 29
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P1
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gccbugz at k1k2 dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


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


             reply	other threads:[~2004-04-27  8:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-27  8:13 gccbugz at k1k2 dot com [this message]
2004-04-27  8:55 ` [Bug libgcj/15162] " rmathew at gcc dot gnu dot org
2004-04-27 11:35 ` pinskia at gcc dot gnu dot org

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=20040427081330.15162.gccbugz@k1k2.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /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).