R: A Simple Wrapper to the CCTZ Library for Time Zone...

RcppCCTZ-package {RcppCCTZ} | R Documentation

## 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.

### 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"`.

### Author(s)

Dirk Eddelbuettel wrote the package; Dan Dillon ported `std::get_time` from LLVM's libc++; Bradley White and Greg Miller wrote the underlying CCTZ library.

Maintainer: Dirk Eddelbuettel <edd@debian.org>

### References

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

### Examples

      helloMoon()

[Package RcppCCTZ version 0.2.9 Index]