I'm not sure that's it: R uses doubles for its POSIXct values so those
aren't at play here. (And even if they were, 64-bit R wouldn't help:
that's only pointer size)

One can trace the problem out of xts down to

ISOdatetime(2035:2040, 12, 31, 23, 59, 59.999)

which is a base R function, but I'm still following it down further.

? DateTimeClasses suggests that OS faculties only rightly control DST
up to 2037, so that might be as far as we can understand it.

Best,
Michael

On Wed, Aug 1, 2012 at 6:10 PM, Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote:
> http://en.wikipedia.org/wiki/Year_2038_problem
>
> Workaround 1: Avoid collecting data in the future and processing it in the 
> present.
>
> Workaround 2: Use a 64-bit build of R, as appropriate for such future data 
> sets.
> ---------------------------------------------------------------------------
> Jeff Newmiller                        The     .....       .....  Go Live...
> DCN:<jdnew...@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
>                                       Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
> ---------------------------------------------------------------------------
> Sent from my phone. Please excuse my brevity.
>
> Marcus Kriele <mkri...@mac.com> wrote:
>
>>I have the following problem:
>>
>>As expected I obtain
>> timeBasedSeq( 2037/2037)
>>[1] "2037-01-01"
>>>
>>However if I do the same for 2038 I get
>>timeBasedSeq( 2038/2038)
>>[1] "2038-01-01" "2039-01-01"
>>
>>I get the same strange result if I use later years or any interval that
>>contains 2038:
>>timeBasedSeq( 2037/2039)
>>[1] "2037-01-01" "2038-01-01" "2039-01-01" "2040-01-01"
>>>
>>
>>Am I doing anything wrong?  I am using R2.15.1 und xts 0.8.6 on a mac.
>>
>>Many thanks,  Marcus
>>
>>
>>       [[alternative HTML version deleted]]
>>
>>______________________________________________
>>R-help@r-project.org mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide
>>http://www.R-project.org/posting-guide.html
>>and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to