In round figures:
Since there are 365.2422 days per tropical year, there are 31556926
seconds per year (give or take leap seconds).
So 31557600 seems to be off by quite a bit.
> -----Original Message-----
> From: pgsql-hackers-owner(at)postgresql(dot)org [mailto:pgsql-hackers-
> owner(at)postgresql(dot)org] On Behalf Of Bruce Momjian
> Sent: Thursday, July 21, 2005 1:35 PM
> To: Greg Stark
> Cc: Tino Wildenhain; Tom Lane; PostgreSQL-development; Marc G.
> Subject: Re: [HACKERS] Imprecision of DAYS_PER_MONTH
> Greg Stark wrote:
> > Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> > > > > BTW, if you actually wanted to improve readability, defining a
> > > > > SECS_PER_YEAR value and replacing the various occurrences of
> > > > > "36525 * 864" with it would help.
> > > > >
> > > > IIRC the number of seconds in a year is far from a constant.
> > >
> > > Yes, I added a comment mentioning that we don't track leap
> > > And this doesn't handle crossing uneven daylight savings time
> > It doesn't even represent leap years, never mind leap seconds.
> Good, point, mention added.
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
> + If your life is a hard drive, | 13 Roberts Road
> + Christ can be your backup. | Newtown Square, Pennsylvania
> ---------------------------(end of
> TIP 4: Have you searched our list archives?
pgsql-hackers by date
|Next:||From: Tom Lane||Date: 2005-07-21 20:55:11|
|Subject: Re: [PATCHES] Roles - SET ROLE Updated |
|Previous:||From: Andrew Dunstan||Date: 2005-07-21 20:42:49|
|Subject: Re: Roles - SET ROLE Updated|