RcppCCTZ 0.2.5
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
A new bugfix release 0.2.5 of RcppCCTZ got onto CRAN this morning – just a good week after the previous release.
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)
Parsing to
Datetime
was corrected on systems that do not have nanosecond support in C++11 chrono (#28).
DatetimeVector
objects are now created with their timezone attribute when available.The
toTz
functions is now vectorized (#29).More unit tests were added, and some conditioning on Solaris (mostly due to missing timezone info) was removed.
We also have a diff to the previous version thanks to CRANberries. More details are at the RcppCCTZ page; code, issue tickets etc at the GitHub repository.
This post by Dirk Eddelbuettel originated on his Thinking inside the box blog. Please report excessive re-aggregation in third-party for-profit settings.
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.