Re: Small addition to PGInterval
От
Kris Jurka
Тема
Re: Small addition to PGInterval
Дата
Msg-id
Pine.BSO.4.64.0704110347270.5256@leary.csoft.net
Ответ на
Small addition to PGInterval (Hartmut Benz)
Список
Дерево обсуждения
Small addition to PGInterval Hartmut Benz <hartmut.benz@ti-wmc.nl>
Re: Small addition to PGInterval Kris Jurka <books@ejurka.com>
Re: Small addition to PGInterval Hartmut Benz <hartmut.benz@ti-wmc.nl>
Re: Small addition to PGInterval Kris Jurka <books@ejurka.com>
Re: Small addition to PGInterval Hartmut Benz <hartmut.benz@ti-wmc.nl>
Re: Small addition to PGInterval Kris Jurka <books@ejurka.com>
On Thu, 29 Mar 2007, Hartmut Benz wrote: > please find attached a small extension to PGInterval: > - getTimeInMillis - returns the number of milliseconds in the interval getLengthInMillis doesn't account for months. ONE_YEAR is seconds in a year instead of milliseconds. Shouldn't we use the server's definition instead of google's for a year's length in seconds: select extract(epoch from '1 year'::interval); date_part ----------- 31557600 (1 row) > - copying constructor PGInterval(PGInterval) for type-safe, cast-free cloning > - now implements Comaparable We can't use generics in this class because it must be buildable with older JDK versions. Also context diffs (-c) are preferred. Kris Jurka
В списке pgsql-jdbc по дате отправления
От: Marc Mamin
Дата: