timestamps and java epochs

Поиск
Список
Период
Сортировка
От Laurette Cisneros
Тема timestamps and java epochs
Дата
Msg-id Pine.LNX.4.33.0108241221560.19179-100000@visor.corp.nextbus.com
обсуждение исходный текст
Ответы Re: timestamps and java epochs
Список pgsql-jdbc

I have a table in which there are two fields that are timestamps.

How do I parse these values back into epoch times?  The
docs say that the values may come back in one of four formats,
how do I know which one I'll get?  I can't seem to get JDBC to
take the "set datestyle" command (it throws an SQLException).

Even better: is there a database function I can use to turn these
things into a unix epoch time?

Thanks,

Laurette
Nextbus, Inc.
www.nextbus.com


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Re: New backend functions?
Следующее
От: Ned Wolpert
Дата:
Сообщение: Re: [HACKERS] Re: New backend functions?