Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 51807 invoked from network); 29 Aug 2006 11:21:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Aug 2006 11:21:25 -0000 Received: (qmail 28257 invoked by uid 500); 29 Aug 2006 11:21:23 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 28006 invoked by uid 500); 29 Aug 2006 11:21:22 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 27995 invoked by uid 99); 29 Aug 2006 11:21:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2006 04:21:21 -0700 X-ASF-Spam-Status: No, hits=2.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of anton.luht@gmail.com designates 66.249.82.225 as permitted sender) Received: from [66.249.82.225] (HELO wx-out-0506.google.com) (66.249.82.225) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Aug 2006 04:21:20 -0700 Received: by wx-out-0506.google.com with SMTP id s13so1979814wxc for ; Tue, 29 Aug 2006 04:20:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Leyyi30/RVsbTRRiXdxp2Q3NkmHzEizJFQDfKBqaHaJ4vCxPFj9f9vPNTwXCOmCcQLv4SPG3B1f1Ts1C1vQTd8dJbomkYiQaCtZW9b2UMRtoEkyUAYzhq0mjnNIVluGQK3z90466kxegXgK70X6oKhB/O7hvmgQpCTDe25pAgHU= Received: by 10.70.131.20 with SMTP id e20mr11228602wxd; Tue, 29 Aug 2006 04:20:59 -0700 (PDT) Received: by 10.70.111.8 with HTTP; Tue, 29 Aug 2006 04:20:59 -0700 (PDT) Message-ID: Date: Tue, 29 Aug 2006 15:20:59 +0400 From: "Anton Luht" To: harmony-dev@incubator.apache.org Subject: Re: [classlib][sql] Another confusing behavior: java.sql.Timestamp In-Reply-To: <44F3FB2F.6030703@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <44F3FB2F.6030703@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, I don't think we should bother about single value which is very unlikely to happpen in real data. On 8/29/06, Richard Liang wrote: > Hello All, > > RI's java.sql.Timestamp(long time) behaves confusing when the > parameter time is in Long.MIN_VALUE. Shall we follow RI? > > Output of the following sample is: > time: -9223372036854775808 > time: 9223372036854775192 > timestamp: 292278994-08-17 15:12:55.192 > timestamp: 292278994-08-17 15:12:55.192 > > > ========================================= > import java.sql.Timestamp; > > public class TimeStampTest { > public static void main(String[] args) { > long time = Long.MIN_VALUE; > long time2 = 9223372036854775192l; > Timestamp timestamp = new Timestamp(time); > Timestamp timestamp2 = new Timestamp(time2); > > System.out.println("time: " + time); > System.out.println("time: " + time2); > > System.out.println("timestamp: " + timestamp); > System.out.println("timestamp: " + timestamp2); > } > } > > > -- > Richard Liang > China Software Development Lab, IBM > > > > --------------------------------------------------------------------- > Terms of use : http://incubator.apache.org/harmony/mailing.html > To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org > For additional commands, e-mail: harmony-dev-help@incubator.apache.org > > -- Regards, Anton Luht, Intel Middleware Products Division --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org