From: Zlatko Calusic <zlatko@iskon.hr>
To: pgsql-sql@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: Porting from mysql to psql (UNIX_TIMESTAMP()?)
Date: 09 Sep 2000 14:30:35 +0200
Message-ID: <871yyt21ec.fsf@atlas.iskon.hr> (raw)
References: <874s3p3k1c.fsf@atlas.iskon.hr>
Zlatko Calusic <zlatko@iskon.hr> writes:
> Is there any similar functionality (returning unixish number of
> seconds since 1970 from the timestamp field) in PostgreSQL?
It's amazing that I spent something like an hour trying to find an
answer, and only ten minutes waiting for the answer to it. :)
Mario Weilguni came up with a date_part('epoch', start) solution, and
that is exactly what I was looking for.
Thanks Mario!
--
Zlatko
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: zlatko@iskon.hr, pgsql-general@postgresql.org
Subject: Re: Porting from mysql to psql (UNIX_TIMESTAMP()?)
In-Reply-To: <871yyt21ec.fsf@atlas.iskon.hr>
References: <874s3p3k1c.fsf@atlas.iskon.hr> <871yyt21ec.fsf@atlas.iskon.hr>
* 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