time zone - timestamp

Started by Maik Trömelover 20 years ago3 messagesgeneral
Jump to latest
#1Maik Trömel
maik.troemel@maitro.net

Hello,

I created a table with:
"create table wrf (region integer, created_on timestamp(0) with time
zone, valid_for timestamp(0) with time zone, type varchar(5), max float,
min float, avg float, stddev float, var float);"

then i inserted data with:
"insert into wrf values ( $i, '2005-08-02 03:00:00 +00', now(), 'T2m',
(select max(tmp) from tmp_point where intersects(tmp_point.the_geom,
(select the_geom from regions where cat=$i))),.........."

then now I selected the columns created_on and valid_for:
"select created_on, valif_for from wrf;"

Result: 2005-08-02 05:00:00+02 | 2005-11-10 14:16:41+01

Now, my question:
Why time zone "+02" in "2005-08-02 05:00:00+02"? And why "+01" in
"2005-11-10 14:16:41+01"?
I think +01 depends on my system time. But why +02?

Greetings
Maik

#2Richard Huxton
dev@archonet.com
In reply to: Maik Trömel (#1)
Re: time zone - timestamp

Maik Trömel wrote:

Result: 2005-08-02 05:00:00+02 | 2005-11-10 14:16:41+01

Now, my question:
Why time zone "+02" in "2005-08-02 05:00:00+02"? And why "+01" in
"2005-11-10 14:16:41+01"?
I think +01 depends on my system time. But why +02?

Summer-time or daylight-saving-time shift. Your clocks go back somewhere
between August and November.

--
Richard Huxton
Archonet Ltd

#3A. Kretschmer
andreas.kretschmer@schollglas.com
In reply to: Maik Trömel (#1)
Re: time zone - timestamp

am 10.11.2005, um 14:58:14 +0100 mailte Maik Tr�mel folgendes:

Now, my question:
Why time zone "+02" in "2005-08-02 05:00:00+02"? And why "+01" in
"2005-11-10 14:16:41+01"?

2005-08-02: summertime
2005-11-10: normal time

HTH, Andreas
--
Andreas Kretschmer (Kontakt: siehe Header)
Heynitz: 035242/47212, D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
=== Schollglas Unternehmensgruppe ===