Open anderic1 opened 4 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!
Hi I think it would be useful to have
as
andwrap
functionality for at least some of the date time types present indate.h
and their R-equivalents. One mapping could be :sys_time<Duration>
<=>POSIXct
, at least for Durations between seconds and microsecondssys_days
(akasys_time<days>
) <=>Date
sys_time<nanoseconds>
<=>nanotime
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.