Re: timestamp conversion to unisgned long?

From: Alex Pilosov <alex(at)pilosoft(dot)com>
To: pierre(at)kahuna(dot)versions(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: timestamp conversion to unisgned long?
Date: 2001-06-22 18:46:00
Message-ID: Pine.BSO.4.10.10106221445350.6628-100000@spider.pilosoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

You probably want to use
select date_part('epoch', timeval);

On 22 Jun 2001 pierre(at)kahuna(dot)versions(dot)com wrote:

> All,
> Perhaps I'm not sing hte correct datatype, but I'd like to be able to convert
> a timestamp over to an unsigned long to be used within C code and compare
> to the output of time().
>
> I can't seem to see any easy way of doing this using the built in
> stuff for postgresql.
>
> Ideas?
>
> Perhaps I'm using the wrong type?
>
> Pierre
>
>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Jeff Boes 2001-06-22 19:18:31 NOTIFY "string" from rule
Previous Message Stephan Szabo 2001-06-22 18:40:16 Re: [SQL] distinguishing different database connections