Skip site navigation (1) Skip section navigation (2)

timestamps and java epochs

From: Laurette Cisneros <laurette(at)nextbus(dot)com>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: timestamps and java epochs
Date: 2001-08-24 19:23:33
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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?


Nextbus, Inc.


pgsql-jdbc by date

Next:From: Tom LaneDate: 2001-08-24 19:37:11
Subject: Re: Re: [JDBC] New backend functions?
Previous:From: Bruce MomjianDate: 2001-08-24 19:10:56
Subject: Re: Bug #428: Another security issue with the JDBC driver.

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group