Re: Formatting TimeStamp

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Alex <alex(at)meerkatsoft(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Formatting TimeStamp
Date: 2005-09-08 17:16:55
Message-ID: 43207207.4080509@commandprompt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)postgresql(dot)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/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2005-09-08 17:19:37 Re: EMS PostgreSQL Manager vs. TheKompany DataArchitect
Previous Message Gavin M. Roy 2005-09-08 17:03:15 Re: EMS PostgreSQL Manager vs. TheKompany DataArchitect