Error in date_trunc function? - Mailing list pgsql-general

From Marat Khairullin
Subject Error in date_trunc function?
Date
Msg-id 20011031181728.540f6cf3.xmm@rambler.ru
Whole thread Raw
Responses Re: Error in date_trunc function?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Compare TZ part of date_func function output with param 'month' and other.
Is it error?

netquote=> select date_trunc('century', now());
       date_trunc
------------------------
 2000-01-01 00:00:00+03
(1 row)

netquote=> select date_trunc('year', now());
       date_trunc
------------------------
 2001-01-01 00:00:00+03
(1 row)

netquote=> select date_trunc('month', now());
       date_trunc
------------------------
 2001-10-01 00:00:00+04
(1 row)

netquote=> select date_trunc('day', now());
       date_trunc
------------------------
 2001-10-31 00:00:00+03
(1 row)

netquote=> select date_trunc('hour', now());
       date_trunc
------------------------
 2001-10-31 18:00:00+03
(1 row)

netquote=> select date_trunc('minute', now());
       date_trunc
------------------------
 2001-10-31 18:12:00+03
(1 row)

netquote=> select date_trunc('second', now());
       date_trunc
------------------------
 2001-10-31 18:12:24+03
(1 row)

--
Marat Khairullin        8->     mailto:xmm@rambler.ru
                                   Marat.Khairullin@f92.n5049.z2.fidonet.org

pgsql-general by date:

Previous
From: eugene_bregman@adc.com
Date:
Subject: remote access via NFS
Next
From: danh@gelatinous.com
Date:
Subject: fresh install of postgres 7.1 doesn't start postmaster with the "-i" flag