X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 08A825280B for ; Mon, 13 Jun 2005 07:35:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 81838-08 for ; Mon, 13 Jun 2005 10:35:18 +0000 (GMT) Received: from web52101.mail.yahoo.com (web52101.mail.yahoo.com [206.190.39.70]) by svr1.postgresql.org (Postfix) with SMTP id EE3A3528BF for ; Mon, 13 Jun 2005 07:35:16 -0300 (ADT) Received: (qmail 16905 invoked by uid 60001); 13 Jun 2005 10:35:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=flXQVx9AMKXpljP0FhK/eqGxHxT/3F6RSs8Q9a+4AzzuFylBnJl78NXbItWTSz7mK5+Lt38PmVLlwoKpLOevxDO5M61tTCSjSqhhyxndxwJoZZS7zfe3l4tKRRK3GdHAcyx+dGg+I9/WfnmxZmC96Y2fSXrfKsOTFc5YTtCp9To= ; Message-ID: <20050613103518.16903.qmail@web52101.mail.yahoo.com> Received: from [218.111.252.82] by web52101.mail.yahoo.com via HTTP; Mon, 13 Jun 2005 03:35:18 PDT Date: Mon, 13 Jun 2005 03:35:18 -0700 (PDT) From: santosh dwivedi Subject: timestamp & graph time scale To: pgsql-jdbc@postgresql.org In-Reply-To: <42AD8567.10004@tnet.dp.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.903 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST X-Spam-Level: X-Archive-Number: 200506/59 X-Sequence-Number: 13021 Hi All, This is my very basic question. I have follwing table in database. result_time | epoch | nodeid | light | parent | voltage ----------------------------+-------+--------+-------+--------+--------- 2004-12-09 16:44:43.501375 | 1 | | | | 2004-12-09 16:44:43.564375 | 2 | 10 | 362 | 0 | 479 2004-12-09 16:44:43.626375 | 3 | 10 | 408 | 0 | 478 2004-12-09 16:44:43.689375 | 4 | 10 | 429 | 0 | 478 2004-12-09 16:44:43.751375 | 5 | 10 | 438 | I need to plot the light Vs Time. For plotiing the data I am using G2Dint java API. To plot time on x axis I need to convert time to some integer value (suppose I choose x-axis scale in minute) How can I convert Timestamp time to an integer minute. As my database is having data over months of period, actually I need to plot values Vs time. Is there any Idea so that I can plot light Vs time ( and can show date along with time). IFAIK G2Dint takes float or integer values to plot them along x axis and y axis. How can I show the time on X axis (with date). Thanks for help. Regards: santosh dwivedi __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com