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