pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stephan Szabo <sszabo@megazone.bigpanda.com>
Cc: Kumar <sgnerd@yahoo.com.sg>
Cc: psql <pgsql-sql@postgresql.org>
Subject: Re: Problem with timestamp - Pls help
Date: Fri, 19 Sep 2003 12:27:26 -0400
Message-ID: <21870.1063988846@sss.pgh.pa.us> (raw)
In-Reply-To: <20030919083808.K212@megazone.bigpanda.com>
References: <038501c37eaf$ff68a310$7502a8c0@hdsc.com>
	<20030919083808.K212@megazone.bigpanda.com>

Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> I think select CAST(CURRENT_TIMESTAMP(0) AS timestamp without time zone)
> may get you what you want without having to rely on the text format.

If you don't want the time zone, there's also LOCALTIMESTAMP(n).  See
http://www.postgresql.org/docs/7.3/static/functions-datetime.html#FUNCTIONS-DATETIME-CURRENT

			regards, tom lane



view thread (6+ messages)

Message-ID: <21870.1063988846@sss.pgh.pa.us>
Permalink:  ../21870.1063988846@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21870.1063988846@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sszabo@megazone.bigpanda.com, sgnerd@yahoo.com.sg
  Subject: Re: Problem with timestamp - Pls help
  In-Reply-To: <21870.1063988846@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox