Hello

I have to convert character strings into POSIXt format. And would like to combine two of them. The following code does not what I expect. The single conversions of the character strings, gives a the date and time with time zone "GMT" as I expect. However if I combine two date time with c() the time zone is changed to CET.

> strptime(paste("01.01.2013", "20:00:00"),format="%d.%m.%Y %H:%M:%S", tz="GMT")
[1] "2013-01-01 20:00:00 GMT"
> strptime(paste("02.01.2013", "01:00:00"),format="%d.%m.%Y %H:%M:%S", tz="GMT")
[1] "2013-01-02 01:00:00 GMT"
> c(strptime(paste("01.01.2013", "20:00:00"),format="%d.%m.%Y %H:%M:%S", tz="GMT"),
+   strptime(paste("02.01.2013", "01:00:00"),format="%d.%m.%Y %H:%M:%S", tz="GMT"))
[1] "2013-01-01 21:00:00 CET" "2013-01-02 02:00:00 CET"

Is that a bug? How can I solve this problem? I really need the time in the time zone "GMT" else I run into troubles when the time changes to summer time.

Thanks for any help.

Kind regards

Raphael Felber
PhD Student

Eidgenössisches Departement für
Wirtschaft, Bildung und Forschung WBF
Agroscope
Institut für Nachhaltigkeitswissenschaften INH
Klima und Lufthygiene

Reckenholzstrasse 191, CH-8046 Zürich
Tel. +41 44 377 75 11
Fax  +41 44 377 72 01
raphael.felber@agroscope.admin.ch<mailto:raphael.felber@agroscope.admin.ch>
www.agroscope.ch<http://www.agroscope.ch/>


	[[alternative HTML version deleted]]

