You're running into time zone issues. If you're in a time zone that
recognizes daylight savings time for part of the year, the difference
in the value you calculate and the expected answer will vary.
Check your current system timezone:
Sys.timezone()
If it doesn't return "UTC" (aka GMT), you're
Hi Luke,
Thank you for the answer.
On 20/01/2012, at 6:11 , Luke Miller wrote:
> 666.1751 sure seems like it should return 2010-10-29 04:12:09 based on
> your example.
>
> 666.1751 days from 2009-01-01 is 2010-10-29 + some hours/min/seconds.
>
> 0.1751 days * 24 hrs/day = 4.2024 (i.e. 4:00AM + s
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> On Behalf Of Sula2011
> Sent: Friday, January 20, 2012 7:00 AM
> To: r-help@r-project.org
> Subject: [R] Incorrect DateTime using ISOdatetime in R
>
> Dear list,
>
666.1751 sure seems like it should return 2010-10-29 04:12:09 based on
your example.
666.1751 days from 2009-01-01 is 2010-10-29 + some hours/min/seconds.
0.1751 days * 24 hrs/day = 4.2024 (i.e. 4:00AM + some minutes).
0.2024 hours * 60 min/hr = 12.144 (i.e. 12 minutes + some seconds).
0.144 mi
Dear list,
I need to transform the DateTime of my GPS data from:
"666.1751" into "/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
Ano
5 matches
Mail list logo