Re: [pgsql-general] Daily Digest V1 #2891

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Karl DeBisschop <kdebisschop(at)alert(dot)infoplease(dot)com>
Cc: Jochem van Dieten <jochemd(at)oli(dot)tudelft(dot)nl>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: [pgsql-general] Daily Digest V1 #2891
Date: 2002-12-19 16:47:40
Message-ID: 27569.1040316460@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Karl DeBisschop <kdebisschop(at)alert(dot)infoplease(dot)com> writes:
> I could do
> | news=> set datestyle TO 'ISO';
> | SET VARIABLE
> | news=> select now();
> | now
> | -------------------------------
> | 2002-12-19 11:27:40.145603-05
> | (1 row)

> But that has spaces instead of the 'T'

In 7.3, this works:

regression=# set datestyle TO 'ISO';
SET
regression=# select replace(current_timestamp(2)::text, ' ', 'T');
replace
---------------------------
2002-12-19T11:46:15.91-05
(1 row)

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Csaba Nagy 2002-12-19 16:58:26 Replacement for Oracle's "ROWNUM" in Postgres
Previous Message Karl DeBisschop 2002-12-19 16:37:22 Re: [pgsql-general] Daily Digest V1 #2891