Re: Imprecision of DAYS_PER_MONTH

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Dann Corbit <DCorbit(at)connx(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Greg Stark <gsstark(at)mit(dot)edu>, Tino Wildenhain <tino(at)wildenhain(dot)de>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, "Marc G(dot) Fournier" <scrappy(at)postgresql(dot)org>
Subject: Re: Imprecision of DAYS_PER_MONTH
Date: 2005-07-22 16:51:11
Message-ID: 20050722165111.GA22231@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Jul 21, 2005 at 13:47:29 -0700,
Dann Corbit <DCorbit(at)connx(dot)com> wrote:
> In round figures:
>
> Since there are 365.2422 days per tropical year, there are 31556926
> seconds per year (give or take leap seconds).
>
> Ref:
> http://www.grc.nasa.gov/WWW/K-12/Numbers/Math/Mathematical_Thinking/cale
> ndar_calculations.htm

According to the current calendar (again ignoring leap seconds) there
are exactly 365.2425 days per year on average. I think it makes sense to use
this number when dealing with calendar years and months.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2005-07-22 16:55:38 Re: Buildfarm failure - pl/tcl on snake
Previous Message Tom Lane 2005-07-22 16:31:59 Re: Buildfarm failure - pl/tcl on snake