RcppCCTZ (version 0.2.0)

RcppCCTZ-package: A Simple Wrapper to the CCTZ Library for Time Zone Calculations

Description

CCTZ contains two underlying libraries which build on the C++11 library chrono. The first covers civil time for computing with human-scale time such as dates and time. It is header-only. The second covers time zones and allow translation between absolute time and civil time.

RcppCCTZ brings CCTZ to R by means of Rcpp.

Arguments

Details

CCTZ requires a valid timezone library as well as recent-enough compiler to cope with C++11.

Windows is supported since version 0.2.0 via the g++-4.9 compiler, but note that it provides an incomplete C++11 library. The std::get_time function was ported from libc++ of the LLVM to enable this. However, string formatting is more limited as the libc++ library used by g++-4.9 does not provide complete C++11 semantics. As one example, CCTZ frequently uses "%F %T" which do not work on Windows; one has to use "%Y-%m-%d %H:%M:%S".

References

The CCZT repository at https://github.com/google/cctz has additional information.

Examples

Run this code
  helloMoon()

Run the code above in your browser using DataCamp Workspace