Re: timestamp- milliseconds since epoch output

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: jkakar(at)expressus(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: timestamp- milliseconds since epoch output
Date: 2001-02-06 18:49:12
Message-ID: Pine.LNX.3.96.1010206194654.3799G-100000@ara.zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


On Tue, 6 Feb 2001 jkakar(at)expressus(dot)com wrote:

> Hi,
>
> I'm using a timestamp field called date_created. Whenever I select it
> I get:
>
> select date_created from tbl_user;
> date_created
> ------------------------
> 2001-02-05 17:23:26-08
> 2001-02-05 17:45:39-08
> 2001-02-03 03:58:53-08
> (3 rows)
>
> I've tried using variations of to_char and to_timestamp but can't seem
> to get the timestamp as a value of milliseconds since the Epoch (Jan

to_char() and to_timestamp() are milliseconds ignorant routines. It's in
my TODO list for next release -- now we in feature freeze state.

Karel

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Florent Guillaume 2001-02-06 21:15:22 Re: [SQL] PL/PGSQL function with parameters
Previous Message Karel Zak 2001-02-06 18:42:42 Re: type casting: varchar to date