Re: [Rcpp-devel] Problem with Rcpp::Datetime

2010-12-17 Thread Dirk Eddelbuettel
On 17 December 2010 at 12:10, Dirk Eddelbuettel wrote: | Confirmed, and dito for Rcpp::Date() constructed from a string. | | | Adding Rcpp::Function asPOSIXct("as.POSIXct") and using it | | to convert seems to fix the problem. | | I'll try to look into but may not get to til Sunday. Fixed in sv

Re: [Rcpp-devel] Problem with Rcpp::Datetime

2010-12-17 Thread Dirk Eddelbuettel
On 17 December 2010 at 12:46, Dominick Samperi wrote: | In the process of migrating from the classic API I have | found what appears to be a problem with Rcpp::Datetime. | There is no unit test for this situation. | | Rcpp::Datetime dt("2015-04-15 06:00:00") | and | Rcpp::Datetime dt("2015-04-15

[Rcpp-devel] Problem with Rcpp::Datetime

2010-12-17 Thread Dominick Samperi
In the process of migrating from the classic API I have found what appears to be a problem with Rcpp::Datetime. There is no unit test for this situation. Rcpp::Datetime dt("2015-04-15 06:00:00") and Rcpp::Datetime dt("2015-04-15 06:00:00.0") both fail due to a type conversion error. Here is the o