[R] Incorrect DateTime using ISOdatetime in R

Sula2011 julia.somma at gmx.de
Fri Jan 20 15:59:52 CET 2012


Dear list,

I need to transform the DateTime of my GPS data from:

"666.1751" into "yyyy/mm/dd hh:mm:ss"  

I have the following code: 

d$Date <- ISOdatetime(2009, 1, 1, 0, 0, 0, tz = "GMT")+d$Date*(24*3600)

This gives me: 2010-10-29 04:12:09, which is wrong. It should be 2010-10-29
06:12:09

Another example:

418.3219 corresponds to: 2010-02-23 07:43:30, but it should be 2010-02-23
08:43:30.

However, not always is the difference + 2 h, it's sometimes less or more.

There are a lot of postings here regarding ISOdatetime, but I'm still not
able to solve this . Any ideas or suggestions will be very much appreciated.

Best regards,

Julia

PS. I've tried to find the answer in all sorts of R help forums and also in
my R books - no luck so far. Maybe I'm missunderstanding the entire
ISOdatetime function? 

--
View this message in context: http://r.789695.n4.nabble.com/Incorrect-DateTime-using-ISOdatetime-in-R-tp4313470p4313470.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list