pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql <pgsql-sql@postgresql.org>
Cc: Najm Hashmi <najm@flipr.com>
Subject: Re: Extracting date from epoche
Date: Thu, 21 Jun 2001 18:47:09 +0100
Message-ID: <004901c0fa7a$329d5620$1001a8c0@archonet.com> (raw)
References: <3B2F73BA.8EBA2FD1@flipr.com>
	<009c01c0fa32$21fb4cc0$1001a8c0@archonet.com>
	<13009.993132307@sss.pgh.pa.us>

From: "Tom Lane" <tgl@sss.pgh.pa.us>

> "Richard Huxton" <dev@archonet.com> writes:
> > Tom - I thought 'epoch'::timestamp should work too - good reason, or
just
> > One Of Those Things (tm)?
>
> It works --- it's a symbolic value, though.
>
> regression=# select 'epoch'::timestamp;
>  ?column?
> ----------
>  epoch
> (1 row)
>
> regression=# select 'epoch'::timestamp + ('1 day'::interval);
>         ?column?
> ------------------------
>  1970-01-01 19:00:00-05
> (1 row)

Ah - problem is in my wetware then. That's ok.

- Richard Huxton




view thread (4+ messages)

Message-ID: <004901c0fa7a$329d5620$1001a8c0@archonet.com>
Permalink:  ../004901c0fa7a$329d5620$1001a8c0@archonet.com/
Also on:    postgresql.org/message-id/004901c0fa7a$329d5620$1001a8c0@archonet.com

 · 

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: dev@archonet.com, tgl@sss.pgh.pa.us, najm@flipr.com
  Subject: Re: Extracting date from epoche
  In-Reply-To: <004901c0fa7a$329d5620$1001a8c0@archonet.com>

* 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