Re: definative way to place secs from epoc into timestamp

From: Andrew - Supernews <andrew+nonews(at)supernews(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: definative way to place secs from epoc into timestamp
Date: 2005-03-03 20:58:14
Message-ID: slrnd2euj5.29om.andrew+nonews@trinity.supernews.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On 2005-03-03, Bret Hughes <bhughes(at)elevating(dot)com> wrote:
> a RFE would be to let to_timestamp be to a timezone without time zone
> and have a to_timestamptz do the time zone thing. Seems more consistent
> and would give me the functionality I am looking for :)

Unix epoch times correspond to timestamp _with_ time zone.

(Why are you using timestamp without time zone anyway? For recording the
time at which an event occurred that usage is simply wrong - in fact I
can't see any situation in which a Unix epoch time can correctly be
converted to a timestamp without time zone.)

--
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Mueller 2005-03-03 21:44:58 Simple delete takes hours
Previous Message Markus Schaber 2005-03-03 20:21:49 Re: Building a database from a flat file