eddelbuettel / rcppdate

R package providing date C++ library header files
11 stars 1 forks source link

as and wrap #1

Open anderic1 opened 4 years ago

anderic1 commented 4 years ago

Hi I think it would be useful to have as and wrap functionality for at least some of the date time types present in date.h and their R-equivalents. One mapping could be :

This maps well with R's implementation, ie days/seconds/nanoseconds since 1970-01-01 00:00 UTC.

I do not if this is already planned, but I have a first draft in my fork. Let me know what you think.

eddelbuettel commented 3 years ago

(There must have been something odd going on with the default settings; somehow I was not following this very repo I created so I missed your issue. :disappointed: )

I think wrappers would be good. We would have to think about where to put them as adding new dependencies (e.g. on this package) is probably a bad idea for Rcpp itself. So maybe we could put them here header-only? Thoughts?

Again, sorry for the delay!