| From: | Greg Stark <gsstark(at)mit(dot)edu> |
|---|---|
| To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
| 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 19:54:28 |
| Message-ID: | 87ek9sc4uj.fsf@stark.xeocode.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
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.
--
greg
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephen Frost | 2005-07-21 19:54:59 | Re: Roles - SET ROLE Updated |
| Previous Message | Stephen Frost | 2005-07-21 19:53:52 | Re: [PATCHES] Roles - SET ROLE Updated |