Re: [SQL] convert in GMT time zone without summer time

2011-05-03 Thread Steve Crawford
On 05/03/2011 12:15 AM, LaraK wrote: Very good! Another question: I want to convert the string to the type TIMESTAMP WITH TIME ZONE. What do I have to format? 'TZ' does not. select to_timestamp('2011-03-22 14:17:00 Europe/Berlin', '-MM-DD HH:MI:SS TZ') Just cast it to a timestamp with

Re: [SQL] convert in GMT time zone without summer time

2011-05-03 Thread LaraK
Very good! Another question: I want to convert the string to the type TIMESTAMP WITH TIME ZONE. What do I have to format? 'TZ' does not. select to_timestamp('2011-03-22 14:17:00 Europe/Berlin', '-MM-DD HH:MI:SS TZ') --- FEHLER: Formatmuster »TZ«/»tz« werden in to_date nicht unterstützt -

Re: [SQL] convert in GMT time zone without summer time

2011-04-18 Thread Steve Crawford
On 04/16/2011 05:02 AM, Jasen Betts wrote: On 2011-04-15, LaraK wrote: Hello, I want write a function that converts a timestamp with time zone to the UTC zone. But it should all be stored in the winter time. Done! All timestamp with time zone information is stored internally in UTC. But you

Re: [SQL] convert in GMT time zone without summer time

2011-04-18 Thread LaraK
I find it difficult to understand you. But the input I can not change: >SELECT >to_char(CONVERT_TO_UTC( '2011-03-22 14:17:00+01'::timestamptz ,'CET'),'-mm-dd hh12:MI:SS') AS winter, >to_char(CONVERT_TO_UTC( '2011-04-22 14:17:00+02'::timestamptz ,'CET'),'-mm-dd hh24:MI:SS') AS summer; T

Re: [SQL] convert in GMT time zone without summer time

2011-04-16 Thread Jasen Betts
On 2011-04-15, LaraK wrote: > Hello, > > I want write a function that converts a timestamp with time zone to the UTC > zone. But it should all be stored in the winter time. > > For example, it must now, in the summer, the German time back by 2 hours and > in the winter time only 1 hour. But it exp

[SQL] convert in GMT time zone without summer time

2011-04-14 Thread LaraK
Hello, I want write a function that converts a timestamp with time zone to the UTC zone. But it should all be stored in the winter time. For example, it must now, in the summer, the German time back by 2 hours and in the winter time only 1 hour. But it expects only back one hour. Is there a func