From: Achilleus Mantzios <achill@matrix.gatewaynet.com>
To: Roberto Mello <rmello@cc.usu.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: epoch to date
Date: Thu, 3 Oct 2002 18:42:51 +0300 (EEST)
Message-ID: <Pine.LNX.4.44.0210031841420.23921-100000@matrix.gatewaynet.com> (raw)
In-Reply-To: <20021003150927.GB20452@cc.usu.edu>
On Thu, 3 Oct 2002, Roberto Mello wrote:
> Hi all,
>
> Maybe I missed something obvious, but is there a built-in function to
> convert epoch to date? I couldn't find it in the documentation for extract
> and friends.
well to compute epoch timestamp
# SELECT (now() -(extract(epoch from now())::int4)/86400)::datetime ;
if thats what you asked :)
>
> Thanks,
>
> -Roberto
>
> --
> +----| Roberto Mello - http://www.brasileiro.net/ |------+
> + Computer Science Graduate Student, Utah State University +
> + USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ +
> All in all, you're just another brick on the wall...
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-10-8981112
fax: +30-10-8981877
email: achill@matrix.gatewaynet.com
mantzios@softlab.ece.ntua.gr
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: achill@matrix.gatewaynet.com, rmello@cc.usu.edu
Subject: Re: epoch to date
In-Reply-To: <Pine.LNX.4.44.0210031841420.23921-100000@matrix.gatewaynet.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