Re: Timestamp, fractional seconds problem

From: "Zeugswetter Andreas SB SD" <ZeugswetterA(at)spardat(dot)at>
To: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Thomas Lockhart" <lockhart(at)fourpalms(dot)org>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Timestamp, fractional seconds problem
Date: 2001-10-05 07:59:43
Message-ID: 46C15C39FEB2C44BA555E356FBCD6FA41EB3AB@m0114.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > ... then trailing zeros are hacked out,
> > two digits at a time.
>
> I was wondering why it seemed to always want to produce an even number
> of fractional digits. Why are you doing it 2 at a time and not 1?
> I should think timestamp(1) would produce 1 fractional digit, not
> two digits of which the second is always 0 ...

Yup, same here. I'd also prefer 1 at a time.
If you want compatibility, I would do it only for the first 2 digits.

Andreas

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 2001-10-05 08:17:50 Re: Problem on AIX with current
Previous Message Zeugswetter Andreas SB SD 2001-10-05 07:52:14 Re: Problem on AIX with current