Re: Formatting intervals.. - Mailing list pgsql-sql

From Peter Eisentraut
Subject Re: Formatting intervals..
Date
Msg-id Pine.LNX.4.44.0303201925510.2112-100000@peter.localdomain
Whole thread Raw
In response to Re: Formatting intervals..  (Karel Zak <zakkr@zf.jcu.cz>)
Responses Re: Formatting intervals..  (Karel Zak <zakkr@zf.jcu.cz>)
List pgsql-sql
Karel Zak writes:

> test=# select to_char('3month 15d 4h 10m'::interval, 'DD-Mon HH24:MI:SS');
>      to_char
> -----------------
>  15-Mar 04:10:00

This doesn't seem correct.  First, you can't make "March" out of "3
months".  Second, 3 months, 15 days and some hours after the start of the
year (if that definition were valid, which it isn't) is on March 16.
Third, why do you have to write "HH24"?  Surely no one would want to write
out intervals using a 12-hour clock?

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-sql by date:

Previous
From: Popeanga Marian
Date:
Subject: Re: explain
Next
From: Karel Zak
Date:
Subject: Re: Formatting intervals..