[Rcpp-devel] NA value for dates
Christian Gunning
xian at unm.edu
Sat Oct 6 13:19:16 CEST 2012
+1
> I would LOVE to offer assistance, but I don't think I can do much - my C/C++
> knowledge is fairly limited.
Seems to me like you're doing pretty well so far! As often as not,
identifying the *location* of the problem is the hardest part.
> I checked out Rcpp's src/Date.cpp . It seems all the work is done on
> Date::update_tm(), which calls gmtime_(). But where is struct tm and time_t
> defined? I guess this is the internal representation of dates in R, correct?
Have you looked at the doxygen docs? They're machine-generated and
can be confusing on first read. On the other hand, they're big-C
Complete. Following your trail, see examples of time_t here:
http://dirk.eddelbuettel.com/code/rcpp/html/Date_8cpp_source.html
Also, http://www.cplusplus.com/reference/clibrary/ctime/time_t/
-Christian
--
A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal – Panama!
More information about the Rcpp-devel
mailing list