[Rcpp-devel] Rcpp::Date bug

Dominick Samperi djsamperi at gmail.com
Sat Dec 4 21:04:56 CET 2010


Since RcppDate (classic class) is moving out of Rcpp I'm trying
to use Rcpp::Date and there seems to be a small problem.

getYear() method adds 1900 when it shouldn't, so 2001 becoms 3901,
for example.

I assume that Rcpp::Date and Rcpp::Datetime are intended to be
replacements for RcppDate and RcppDatetime, resp., but
they seem to be missing std::ostream operator<<().

Rcpp::Date also seems to have more timezone related logic.
Is there documentation on this?

Thanks,
Dominick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101204/b61bfcf3/attachment.htm>


More information about the Rcpp-devel mailing list