| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Greg Stark <gsstark(at)mit(dot)edu> |
| Cc: | 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-21 20:34:30 |
| Message-ID: | 200507212034.j6LKYUM15785@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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 seconds.
> > And this doesn't handle crossing uneven daylight savings time intervals.
>
> 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 19073
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrew Dunstan | 2005-07-21 20:42:49 | Re: Roles - SET ROLE Updated |
| Previous Message | Tom Lane | 2005-07-21 20:30:06 | Re: [PATCHES] Roles - SET ROLE Updated |