Re: [R] Problem to convert date to number

2011-04-06 Thread David Winsemius
On Apr 6, 2011, at 7:55 AM, Chris82 wrote: Hi R users, I have a maybe small problem which I cannot solve by myself. I want to convert "chron" "dates" "times" (04/30/06 11:35:00) Using the example from help(chron) > as.POSIXlt(x) # chron times are assumed to be UTC but are printed with th

[R] Problem to convert date to number

2011-04-06 Thread Chris82
Hi R users, I have a maybe small problem which I cannot solve by myself. I want to convert "chron" "dates" "times" (04/30/06 11:35:00) to a number with as.POSIXct. The Problem is that I can't choose different timezones. I always get "CEST" and not "UTC" what I need. date = as.POSIXct(y,t