Re: Formatting TimeStamp - Mailing list pgsql-general

From Joshua D. Drake
Subject Re: Formatting TimeStamp
Date
Msg-id 43207207.4080509@commandprompt.com
Whole thread Raw
In response to Formatting TimeStamp  (Alex <alex@meerkatsoft.com>)
Responses Formatting TimeStamp
List pgsql-general
Alex wrote:
> Hi,
>
> I am using the timestamp various tables but dont like to see the
> microseconds.
> Is there way to format the output of timestamp fields globally (in the
> postgres.conf)?
> Preferably i only would like to see the YYYYMMDD HH:MM:SS.
>
> Or can a formatting be passed to a SELECT * .... hmmm probably not.

http://www.postgresql.org/docs/8.0/static/functions-datetime.html

And yes you can do it in a SELECT.

Sincerely,

Joshua D. Drake



>
> Thanks for any advise
>
> A
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>       subscribe-nomail command to majordomo@postgresql.org so that your
>       message can get through to the mailing list cleanly


--
Your PostgreSQL solutions company - Command Prompt, Inc. 1.800.492.2240
PostgreSQL Replication, Consulting, Custom Programming, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: plPHP, plPerlNG - http://www.commandprompt.com/

pgsql-general by date:

Previous
From: "Gavin M. Roy"
Date:
Subject: Re: EMS PostgreSQL Manager vs. TheKompany DataArchitect
Next
From: "Joshua D. Drake"
Date:
Subject: Re: EMS PostgreSQL Manager vs. TheKompany DataArchitect