pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feeddate/time
5+ messages / 4 participants
[nested] [flat]
* date/time
@ 2001-01-15 22:09 snef <snef@soneramail.nl>
2001-01-16 04:51 ` Re: date/time Ian Harding <iharding@pakrat.com>
2001-01-16 17:00 ` Re: date/time J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>
2001-01-17 03:24 ` Re: date/time Ian Harding <iharding@pakrat.com>
0 siblings, 3 replies; 5+ messages in thread
From: snef @ 2001-01-15 22:09 UTC (permalink / raw)
To: pgsql-admin@postgresql.org.pgsql-general
Hi,
I have read the man's with Postgres.
But I can't seem to get Postgres use European time notation (dd/mm/yyyy).
Where can I adjust this? (in which file?)
Snef
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: date/time
2001-01-15 22:09 date/time snef <snef@soneramail.nl>
@ 2001-01-16 04:51 ` Ian Harding <iharding@pakrat.com>
2 siblings, 0 replies; 5+ messages in thread
From: Ian Harding @ 2001-01-16 04:51 UTC (permalink / raw)
To: pgsql-admin@postgresql.org.pgsql-general
snef wrote:
> Hi,
> I have read the man's with Postgres.
> But I can't seem to get Postgres use European time notation (dd/mm/yyyy).
>
> Where can I adjust this? (in which file?)
>
> Snef
SET DATESTYLE TO 'SQL, EUROPEAN';
SELECT NOW();
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: date/time
2001-01-15 22:09 date/time snef <snef@soneramail.nl>
@ 2001-01-16 17:00 ` J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>
2 siblings, 0 replies; 5+ messages in thread
From: J.H.M. Dassen (Ray) @ 2001-01-16 17:00 UTC (permalink / raw)
To: pgsql-general@postgresql.org
On Mon, Jan 15, 2001 at 23:09:26 +0100, snef wrote:
> But I can't seem to get Postgres use European time notation (dd/mm/yyyy).
Do
SET DATESTYLE TO 'POSTGRES,EUROPEAN'
and use European time notation with hyphens, e.g.
SELECT * FROM Foo WHERE start >= '31-12-2000'
> Where can I adjust this? (in which file?)
On my system, it's /etc/postgresql/postmaster.init, the "PGDATESTYLE"
setting.
HTH,
Ray
--
LWN normally tries to avoid talking much about Microsoft - it is simply
irrelevant to the free software world most of the time.
http://www.lwn.net/2000/0406/
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: date/time
2001-01-15 22:09 date/time snef <snef@soneramail.nl>
@ 2001-01-17 03:24 ` Ian Harding <iharding@pakrat.com>
2001-01-18 15:53 ` Re: [GENERAL] Re: date/time Patrick Welche <prlw1@newn.cam.ac.uk>
2 siblings, 1 reply; 5+ messages in thread
From: Ian Harding @ 2001-01-17 03:24 UTC (permalink / raw)
To: pgsql-admin@postgresql.org.pgsql-general
snef wrote:
> Hi,
> I have read the man's with Postgres.
> But I can't seem to get Postgres use European time notation (dd/mm/yyyy).
>
> Where can I adjust this? (in which file?)
>
> Snef
Actually, I think you may want the environment variable PGDATESTYLE. It
sets the datestyle for new connections. That is all I know about it!
Ian
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: [GENERAL] Re: date/time
2001-01-15 22:09 date/time snef <snef@soneramail.nl>
2001-01-17 03:24 ` Re: date/time Ian Harding <iharding@pakrat.com>
@ 2001-01-18 15:53 ` Patrick Welche <prlw1@newn.cam.ac.uk>
0 siblings, 0 replies; 5+ messages in thread
From: Patrick Welche @ 2001-01-18 15:53 UTC (permalink / raw)
To: Ian Harding <iharding@pakrat.com>; +Cc: pgsql-admin; pgsql-general@postgresql.org
On Tue, Jan 16, 2001 at 07:24:15PM -0800, Ian Harding wrote:
> snef wrote:
>
> > Hi,
> > I have read the man's with Postgres.
> > But I can't seem to get Postgres use European time notation (dd/mm/yyyy).
> >
> > Where can I adjust this? (in which file?)
> >
> > Snef
>
> Actually, I think you may want the environment variable PGDATESTYLE. It
> sets the datestyle for new connections. That is all I know about it!
Either set the environment variable PGDATESTYLE to 'Postgres,European' or
send the query
set datestyle='Postgres,European'
(I think SQL instead of Postgres works too)
eg:
quartz% printenv PGDATESTYLE
Postgres,European
rfb=# show datestyle;
NOTICE: DateStyle is Postgres with European conventions
SHOW VARIABLE
Cheers,
Patrick
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2001-01-18 15:53 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-15 22:09 date/time snef <snef@soneramail.nl>
2001-01-16 04:51 ` Ian Harding <iharding@pakrat.com>
2001-01-16 17:00 ` J.H.M. Dassen (Ray) <jdassen@cistron-office.nl>
2001-01-17 03:24 ` Ian Harding <iharding@pakrat.com>
2001-01-18 15:53 ` Patrick Welche <prlw1@newn.cam.ac.uk>
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