Re: how to add 'time with time zone' data types and 'interval' data types

From: Binand Sethumadhavan <binand(at)gmx(dot)net>
To: avpro avpro <avprowebeden(at)gmail(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: how to add 'time with time zone' data types and 'interval' data types
Date: 2014-01-07 15:57:26
Message-ID: CAFBJCCY47XWoZgpcAuhK93+cNdhkVmy2_3wFPr8i6bOa6dCZ6A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On 7 January 2014 20:58, avpro avpro <avprowebeden(at)gmail(dot)com> wrote:
> select '12:00'::time - '9:00'::time; didn't work.

This ought to work, oughtn't it?

binand=# select '12:00'::time - '9:00'::time as duration;
duration
----------
03:00:00
(1 row)

Binand

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Sameer Kumar 2014-01-07 16:16:12 Re: Master-slave failover question
Previous Message avpro avpro 2014-01-07 15:28:06 Re: how to add 'time with time zone' data types and 'interval' data types