[R] Creating Rcpp RcppDatetime from string with millisecond

Romain Francois romain.francois at dbmail.com
Fri Mar 19 08:50:47 CET 2010


Hello,

Rcpp has a dedicated mailing list where such questions are appropriate.
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Please augment your email with some code examples of what you tried and 
repost on Rcpp-devel.

Romain


Le 19/03/10 00:45, R_help Help a écrit :
>
> Hi,
>
> I was trying to generate RcppDatetime from a string. The main problem
> for me is that my string contains millisecond. I saw that RcppDatetime
> takes in double of seconds since epoch. I try to generate a double
> using boost but has no success. I'm wondering if you have any sample
> snippet?
>
> The string looks like:
>
> "2010-03-18 15:50:51.232"
>
> Secondly, what time zone RcppDatetime is based on? Is it local machine
> time zone? And if I have a need to convert time zone, is there any
> tool at hand I can use? Or I have to resort to something like boost
> again? Thank you so much in advance.
>
> Rob


-- 
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/OIXN : raster images and RImageJ
|- http://tr.im/OcQe : Rcpp 0.7.7
`- http://tr.im/O1wO : highlight 0.1-5



More information about the R-help mailing list