A new minor version 0.2.1, of RcppCCTZ is now on CRAN. It corrects a possible shortcoming and rounding in the conversion from internal representation (in C++11 using
int64_t) to the two
double values for seconds and nanoseconds handed to R. Two other minor changes are also summarized below.
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. The RcppCCTZ page has a few usage examples and details.
The changes in this version are summarized here:
Changes in version 0.2.1 (2017-02-04)
This release adds an improved default display format always showing nine digits of fractional seconds. It also changes the
print() method to call
format() first, and we started to provide some better default
Ops methods. These fixes were suggested by Matt Dowle. We also corrected a small issue which could lead to precision loss in formatting as pointed out by Leonardo Silvestri.
Changes in version 0.1.1 (2017-02-04)
The default print method was updated to use formated output, and a new new converter
Several 'Ops' method are now explicitly defined allowing casting of results (rather than falling back on bit64 behaviour)