Thanks to visit codestin.com
Credit goes to postgrespro.com

Re: casting interval to time - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: casting interval to time
Date
Msg-id [email protected]
Whole thread Raw
In response to Re: casting interval to time  (Tom Lane <[email protected]>)
Responses Re: casting interval to time
List pgsql-sql
Dnia 2003-06-16 16:53, Użytkownik Tom Lane napisał:
> Tomasz Myrta <[email protected]> writes:
> 
>>psql (PostgreSQL) 7.3.2
>>SELECT cast(cast('1 day 12 hours' as interval) as time);
>>   time
>>----------
>>  00:00:00
>>(1 row)
> 
> 
> I get 12:00:00 here, using 7.3.3 ... platform-specific problem maybe?
Default Debian package. I got the same result even on a 7.3.3 Debian 
package.

postgresql.conf contains:
DATESTYLE = 'iso,european'
LC_MESSAGES = 'C'
LC_MONETARY = 'C'
LC_NUMERIC = 'C'
LC_TIME = 'C'

Regards,
Tomasz Myrta



pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: casting interval to time
Next
From: BenLaKnet
Date:
Subject: [pgmail] - I have problems with pgmail