pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Whitney <scott@journyx.com>
To: Denise CTR NSWCDD Ferrell, Z11 <denise.ferrell.ctr@navy.mil>
Cc: pgsql-admin@postgresql.org
Cc: pgsql-performance@postgresql.org
Subject: Re: Setting a default format for timestamp
Date: Thu, 31 Jul 2014 15:59:01 -0500 (CDT)
Message-ID: <1622232859.705946.1406840341509.JavaMail.zimbra@mail.int.journyx.com> (raw)
In-Reply-To: <2BC18916DE4BF141AC1EFC55CE2CAE7D431EB7@NAEANRFKXM01V.nadsusea.nads.navy.mil>
References: <2BC18916DE4BF141AC1EFC55CE2CAE7D431EB7@NAEANRFKXM01V.nadsusea.nads.navy.mil>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

_Where_ do you want that default format? Are you asking about a field? psql output? The O/S? 

What you're asking might be as simple as "datestyle," if you're just talking the output mask: 

http://www.postgresql.org/docs/9.1/static/runtime-config-client.html 



DateStyle ( string ) 
Sets the display format for date and time values, as well as the rules for interpreting ambiguous date input values. For historical reasons, this variable contains two independent components: the output format specification ( ISO , Postgres , SQL , or German ) and the input/output specification for year/month/day ordering ( DMY , MDY , or YMD ). These can be set separately or together. The keywords Euro and European are synonyms for DMY ; the keywords US , NonEuro , and NonEuropean are synonyms for MDY . See Section 8.5 for more information. The built-in default is ISO, MDY , but initdb will initialize the configuration file with a setting that corresponds to the behavior of the chosen lc_time locale. 

----- Original Message ----- 

> Hi All,

> Using PostgreSQL 9.3 on Linux Red-Hat platform.

> How would I go about setting a default format for the timestamp? I've set the
> default for TimeZone to UTC.

> Thank you in advance for any information.

> DF

> --
> Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin


-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (2+ messages)

Message-ID: <1622232859.705946.1406840341509.JavaMail.zimbra@mail.int.journyx.com>
Permalink:  ../1622232859.705946.1406840341509.JavaMail.zimbra@mail.int.journyx.com/
Also on:    postgresql.org/message-id/1622232859.705946.1406840341509.JavaMail.zimbra@mail.int.journyx.com

 · 

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-performance@postgresql.org
  Cc: scott@journyx.com, denise.ferrell.ctr@navy.mil, pgsql-admin@postgresql.org
  Subject: Re: Setting a default format for timestamp
  In-Reply-To: <1622232859.705946.1406840341509.JavaMail.zimbra@mail.int.journyx.com>

* 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