pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Achilleas Mantzios <achill@matrix.gatewaynet.com>
To: pgsql-admin@postgresql.org
Cc: Julius Tuskenis <julius@nsoft.lt>
Subject: Re: how to get a number of seconds in some interval ?
Date: Mon, 12 May 2008 17:24:38 +0300
Message-ID: <200805121724.38772.achill@matrix.gatewaynet.com> (raw)
In-Reply-To: <482849B0.6050103@nsoft.lt>
References: <482849B0.6050103@nsoft.lt>

Στις Monday 12 May 2008 16:44:16 ο/η Julius Tuskenis έγραψε:
> Hello,
> 
> Is there a good method of knowing how mutch seconds does some interval 
> have?? I tried my_interval / (interval '1 second'), but there is no 
> operator interval / interval defines (I wonder why).
> Is there a method to do so?
> 
smth like
dynacom=# SELECT extract(epoch from '49 hours 0 mins 12 seconds'::interval);

> -- 
> Julius Tuskenis
> Programavimo skyriaus vadovas
> UAB nSoft
> mob. +37068233050
> 
> 



-- 
Achilleas Mantzios



view thread (11+ messages)  latest in thread

Message-ID: <200805121724.38772.achill@matrix.gatewaynet.com>
Permalink:  ../200805121724.38772.achill@matrix.gatewaynet.com/
Also on:    postgresql.org/message-id/200805121724.38772.achill@matrix.gatewaynet.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-admin@postgresql.org
  Cc: achill@matrix.gatewaynet.com, julius@nsoft.lt
  Subject: Re: how to get a number of seconds in some interval ?
  In-Reply-To: <200805121724.38772.achill@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