From: | "Richard Huxton" <dev(at)archonet(dot)com> |
---|---|
To: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | "pgsql" <pgsql-sql(at)postgresql(dot)org>, "Najm Hashmi" <najm(at)flipr(dot)com> |
Subject: | Re: Extracting date from epoche |
Date: | 2001-06-21 17:47:09 |
Message-ID: | 004901c0fa7a$329d5620$1001a8c0@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
From: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> "Richard Huxton" <dev(at)archonet(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Roberto Mello | 2001-06-21 17:50:46 | Re: Changing PL/pgSQL triggers |
Previous Message | Jan Wieck | 2001-06-21 17:35:35 | Re: Correct syntex for implicit curor in for loops |