Re: Frustration with date/times/epoch in v7.3.

From: "Peter Gibbs" <peter(at)emkel(dot)co(dot)za>
To: <mikeb(at)netnation(dot)com>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: Frustration with date/times/epoch in v7.3.
Date: 2002-12-12 17:59:29
Message-ID: 001a01c2a208$37e22200$0b01010a@emkel.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mike Benoit wrote:

> select imported_date, ('Jan 1 1970'::DATE + (imported_date || '
seconds')::INTERVAL)::timestamp from server_accounts limit 1
> imported_date | timestamp
> ---------------+---------------------
> 1027966107 | 2002-07-29 18:08:27

test=> select imported_date, abstime(imported_date) from server_accounts;
imported_date | abstime
---------------+------------------------
1037498593 | 2002-11-17 04:03:13+02
1027966107 | 2002-07-29 20:08:27+02

--
Peter Gibbs
EmKel Systems

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2002-12-12 18:04:36 Re: Error codes
Previous Message Peter Darley 2002-12-12 17:41:03 Re: infinity as a date