pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: myzhen <zhenmingyang@yeah.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: to_timestamp function calculation error
Date: Tue, 17 Dec 2024 10:31:50 -0500
Message-ID: <2236659.1734449510@sss.pgh.pa.us> (raw)
In-Reply-To: <4833ac30.18d0.193d475b6d3.Coremail.zhenmingyang@yeah.net>
References: <4833ac30.18d0.193d475b6d3.Coremail.zhenmingyang@yeah.net>

myzhen <zhenmingyang@yeah.net> writes:
> When calling the to_timestamp function, if the actual parameter passed is a negative year and you specify BC, this will cause to_timestamp to return an AD date.

I believe this is intentional.

			regards, tom lane





view thread (2+ messages)

Message-ID: <2236659.1734449510@sss.pgh.pa.us>
Permalink:  ../2236659.1734449510@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2236659.1734449510@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, zhenmingyang@yeah.net
  Subject: Re: to_timestamp function calculation error
  In-Reply-To: <2236659.1734449510@sss.pgh.pa.us>

* 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