pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander M. Pravking <fduch@antar.bryansk.ru>
To: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: Lonh SENG <slonh@camgsm.com.kh>
Cc: pgsql-sql@postgresql.org
Subject: Re: Conversion
Date: Tue, 13 Aug 2002 11:03:40 +0400
Message-ID: <20020813070339.GA91244@dyatel.antar.bryansk.ru> (raw)
In-Reply-To: <GNELIHDDFBOCMGBFGEFOKEKHCDAA.chriskl@familyhealth.com.au>
References: <006e01c24277$83c4cf10$05a00017@idlonh>
	<GNELIHDDFBOCMGBFGEFOKEKHCDAA.chriskl@familyhealth.com.au>

On Tue, Aug 13, 2002 at 11:32:25AM +0800, Christopher Kings-Lynne wrote:
> Is the int4 a UNIX epoch? ie. seconds since 1970?
> 
> If so, then this will generally work:
> 
> SELECT CAST(int4field AS abstime);
> 
> or
> 
> SELECT int4field::abstime;

http://www.postgresql.org/idocs/index.php?datatype-datetime.html says:

 The types abstime  and reltime are lower precision types which are used
 internally. You are discouraged from using any of these types in new
 applications and are encouraged to move any old ones over when
 appropriate. Any or all of these internal types might disappear in a
 future release.

Don't they?

-- 
Fduch M. Pravking



view thread (10+ messages)  latest in thread

Message-ID: <20020813070339.GA91244@dyatel.antar.bryansk.ru>
Permalink:  ../20020813070339.GA91244@dyatel.antar.bryansk.ru/
Also on:    postgresql.org/message-id/20020813070339.GA91244@dyatel.antar.bryansk.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: fduch@antar.bryansk.ru, chriskl@familyhealth.com.au, slonh@camgsm.com.kh
  Subject: Re: Conversion
  In-Reply-To: <20020813070339.GA91244@dyatel.antar.bryansk.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox