RcppCCTZ uses Rcpp to bring CCTZ to R. CCTZ is a C++ library for translating between absolute and civil times using the rules of a time zone. In fact, it is two libraries. One for dealing with civil time: human-readable dates and times, and one for converting between between absolute and civil times via time zones. And while CCTZ is made by Google(rs), it is not an official Google product. The RcppCCTZ page has a few usage examples and details. This package was the first CRAN package to use CCTZ; by now at least three others do—but decided in their infinite wisdom to copy the sources yet again into their packages. Sigh.
This version corrects two bugs. We were not properly accounting for those poor systems that do not natively have nanosecond resolution. And I missed a feature in the Rcpp
DatetimeVector class by not setting the timezone on newly created variables; this too has been fixed.
Changes in version 0.2.5 (2018-10-14)
Datetimewas corrected on systems that do not have nanosecond support in C++11 chrono (#28).
DatetimeVectorobjects are now created with their timezone attribute when available.
toTzfunctions is now vectorized (#29).
More unit tests were added, and some conditioning on Solaris (mostly due to missing timezone info) was removed.