Re: extracting from epoch values in pgsql - Mailing list pgsql-sql

From Gavin McCullagh
Subject Re: extracting from epoch values in pgsql
Date
Msg-id 20090917173744.GA2419@gcd.ie
Whole thread Raw
In response to Re: extracting from epoch values in pgsql  (Osvaldo Kussama <osvaldo.kussama@gmail.com>)
List pgsql-sql
On Thu, 17 Sep 2009, Osvaldo Kussama wrote:

> From manual:
> http://www.postgresql.org/docs/current/interactive/functions-datetime.html
> 
> date_part('month',to_timestamp(time))
> or
> extract(month from to_timestamp(time))

Gah.  I don't know I missed that.  This works fine.
 SELECT extract(month from to_timestamp(time)) FROM mdl_log;

Many thanks,
Gavin




pgsql-sql by date:

Previous
From: Gavin McCullagh
Date:
Subject: Re: extracting from epoch values in pgsql
Next
From: Frank Bax
Date:
Subject: Re: extracting from epoch values in pgsql