X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 465F9D7C80 for ; Thu, 10 Nov 2005 14:38:19 -0400 (AST) 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 86507-06 for ; Thu, 10 Nov 2005 18:38:17 +0000 (GMT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 99260D7BF7 for ; Thu, 10 Nov 2005 14:38:17 -0400 (AST) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id jAAIcDE0039621 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 10 Nov 2005 11:38:15 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.4/8.13.4) with ESMTP id jAAIcDjg032038; Thu, 10 Nov 2005 11:38:13 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.4/8.13.4/Submit) id jAAIcCcf032037; Thu, 10 Nov 2005 11:38:12 -0700 (MST) (envelope-from mfuhr) Date: Thu, 10 Nov 2005 11:38:12 -0700 From: Michael Fuhr To: Judith Altamirano Figueroa Cc: pgsql-sql@postgresql.org Subject: Re: time Message-ID: <20051110183812.GA21207@winnie.fuhr.org> References: <1131635035.3529.143.camel@Desarrollo> <1131646287.819.144.camel@home> <20051110182139.GA87715@winnie.fuhr.org> <1131647057.3529.272.camel@Desarrollo> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1131647057.3529.272.camel@Desarrollo> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.006 required=5 tests=[AWL=0.006] X-Spam-Score: 0.006 X-Spam-Level: X-Archive-Number: 200511/94 X-Sequence-Number: 23345 [Please copy the mailing list on replies.] On Thu, Nov 10, 2005 at 12:24:17PM -0600, Judith Altamirano Figueroa wrote: > excuse me and how can I just get the hour, minute and second The time type takes an optional precision: test=> select now()::time; now ----------------- 11:36:34.124678 (1 row) test=> select now()::time(0); now ---------- 11:36:34 (1 row) test=> select now()::time(2); now ------------- 11:36:34.12 (1 row) -- Michael Fuhr