Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adcVt-0006sQ-56 for pgsql-docs@arkaria.postgresql.org; Wed, 09 Mar 2016 11:42:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adcVs-0002rp-No for pgsql-docs@arkaria.postgresql.org; Wed, 09 Mar 2016 11:42:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adcVr-0002rL-Pj for pgsql-docs@postgresql.org; Wed, 09 Mar 2016 11:42:47 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adcVn-000539-O8 for pgsql-docs@postgresql.org; Wed, 09 Mar 2016 11:42:47 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 89FA121C6AB7 for ; Wed, 9 Mar 2016 14:42:43 +0300 (MSK) Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Acvcg8lehOvI for ; Wed, 9 Mar 2016 14:42:37 +0300 (MSK) Received: from [192.168.27.30] (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 858BC21C58A7 for ; Wed, 9 Mar 2016 14:42:37 +0300 (MSK) To: pgsql-docs@postgresql.org From: Alex Ignatov Subject: to_date 'J' format misunderstanding Message-ID: <56E00C33.3080502@postgrespro.ru> Date: Wed, 9 Mar 2016 14:42:43 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org In Table 9-22. Template Patterns for Date/Time Formatting we have 'J Julian Day (days since November 24, 4714 BC at midnight)' But there is no any information about what calender use for date of November 24, 4714 BC. From wikipedia we know that it is November 24, 4714 BC, in the proleptic Gregorian calendar. I think information about Gregorian calendar must include in documentation for misunderstaning exclusion PS. In oracle docs we have following info about formatting: ' J Yes Julian day; the number of days since January 1, 4712 BC. Number specified with J must be integers.' again no any information about what calendar is using for date January 1, 4712 BC %) -- Alex Ignatov Postgres Professional: http://www.postgrespro.com The Russian Postgres Company -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs