Re: my pgsql error? - Mailing list pgsql-sql

From Tom Lane
Subject Re: my pgsql error?
Date
Msg-id 24923.984581391@sss.pgh.pa.us
Whole thread Raw
In response to Re: my pgsql error?  ("Richard Huxton" <dev@archonet.com>)
Responses Re: my pgsql error?  (Roland Roberts <roland@astrofoto.org>)
List pgsql-sql
> For a moment I thought you could do to_char(now(),'Day DD Month YYYY'
> but you're quite right you need to rtrim() the various pieces.

regression=# select to_char(now()-10,'Day DD Month YYYY');          to_char
-----------------------------Sunday    04 March     2001
(1 row)

regression=# select to_char(now()-10,'fmDay fmDD fmMonth YYYY');      to_char
---------------------Sunday 4 March 2001
(1 row)

The 'fm' prefix is not very well explained in the docs at
http://www.postgresql.org/devel-corner/docs/postgres/functions-formatting.html
If anyone wants to suggest better wording, I'll be glad to put it in.
        regards, tom lane


pgsql-sql by date:

Previous
From: "pgsql-sql"
Date:
Subject: Re(2): Permissons on database
Next
From: Alexaki Sofia
Date:
Subject: ...