Hi Dirk,

this is where I took the idea from. The fasttime package works with delimited 
date patterns, which we often do not have. We have rather something like: 
20130405 instead of 2013-04-05 (and I don't want to start with manipulating 
data in perl or python before reading it into R; this gets usually messy). 
WIthout a delimiter the code in fasttime does not work. I use the basic 
principle of Simon's code and extend it to undelimited date patterns with four 
year digits and two year digits; but using Rcpp instead of the C and the SEXPs. 
I see though, that the Date::mktime00 function does something very similar … 

Does it even make sense to think about working with POSIXct in Rcpp or is this 
task already completed/unnecessary?


Best

Simon


On Sep 29, 2013, at 8:49 PM, Dirk Eddelbuettel <[email protected]> wrote:

> 
> On 29 September 2013 at 20:20, Simon Zehnder wrote:
> | This was my first approach. I write a date parser that converts strings to 
> seconds since 1970 for Rcpp. 
> 
> Is there a reason you cannot use Simon Urbanek's fasttime?
> 
> http://rforge.net/fasttime/ 
> 
> Dirk
> 
> -- 
> Dirk Eddelbuettel | [email protected] | http://dirk.eddelbuettel.com

_______________________________________________
Rcpp-devel mailing list
[email protected]
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to