Re: Formatting intervals..

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Rajesh Kumar Mallah <mallah(at)trade-india(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Formatting intervals..
Date: 2003-03-17 11:56:48
Message-ID: 3E75B800.7000902@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Uz.ytkownik Rajesh Kumar Mallah napisa?:
> Hi,
>
> Is it possible to customize interval display.
>
> eg,
>
> tradein_clients=# SELECT cast ('10-10-1999'::timestamp - '1-1-1999'::timestamp AS interval);
> +----------+
> | interval |
> +----------+
> | 282 days |
> +----------+
> (1 row)
>
> can i display it in months and days..
It doesn't make sense. You don't have whole date, so how long should
month be? 28? 29? 30? 31?

Regards,
Tomasz Myrta

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2003-03-17 13:03:58 Re: Formatting intervals..
Previous Message Rajesh Kumar Mallah 2003-03-17 11:47:25 Formatting intervals..