<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/rcppcctz-0-2-5/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2018/10/14#rcppcctz_0.2.5"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>A new bugfix release 0.2.5 of <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.cctz.html" target="_blank">RcppCCTZ</a> got onto <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a> this morning – just a good week after <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/2018/10/06#rcppcctz_0.2.4" target="_blank">the previous release</a>.</p>
<p><a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.cctz.html" target="_blank">RcppCCTZ</a> uses <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.html" target="_blank">Rcpp</a> to bring <a rel="nofollow" href="https://github.com/google/cctz" target="_blank">CCTZ</a> to R. <a rel="nofollow" href="https://github.com/google/cctz" target="_blank">CCTZ</a> is <em>a C++ library for translating between absolute and civil times using the rules of a time zone</em>. In fact, it is <em>two</em> libraries. One for dealing with <em>civil time</em>: human-readable dates and times, and one for converting between between absolute and civil times via time zones. And while <a rel="nofollow" href="https://github.com/google/cctz" target="_blank">CCTZ</a> is made by Google(rs), it is not an official Google product. The <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.cctz.html" target="_blank">RcppCCTZ</a> page has a few usage examples and details. This package was the first <a rel="nofollow" href="https://cran.r-project.org/" target="_blank">CRAN</a> package to use <a rel="nofollow" href="https://github.com/google/cctz" target="_blank">CCTZ</a>; by now at least three others do—but decided in their infinite wisdom to copy the sources yet again into their packages. Sigh.</p>
<p>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 <a rel="nofollow" href="http://www.rcpp.org/" target="_blank">Rcpp</a> <code>DatetimeVector</code> class by not setting the timezone on newly created variables; this too has been fixed.</p>
<blockquote>
<h4>Changes in version 0.2.5 (2018-10-14)</h4>
<ul>
<li>
<p>Parsing to <code>Datetime</code> was corrected on systems that do not have nanosecond support in C++11 chrono (<a rel="nofollow" href="https://github.com/eddelbuettel/rcppcctz/pull/28" target="_blank">#28</a>).</p>
</li>
<li>
<p><code>DatetimeVector</code> objects are now created with their timezone attribute when available.</p>
</li>
<li>
<p>The <code>toTz</code> functions is now vectorized (<a rel="nofollow" href="https://github.com/eddelbuettel/rcppcctz/pull/29" target="_blank">#29</a>).</p>
</li>
<li>
<p>More unit tests were added, and some conditioning on Solaris (mostly due to missing timezone info) was removed.</p>
</li>
</ul>
</blockquote>
<p>We also have a <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/2018/10/14#RcppCCTZ_0.2.5" target="_blank">diff to the previous version</a> thanks to <a rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries" target="_blank">CRANberries</a>. More details are at the <a rel="nofollow" href="http://dirk.eddelbuettel.com/code/rcpp.cctz.html" target="_blank">RcppCCTZ page</a>; code, issue tickets etc at the <a rel="nofollow" href="https://github.com/eddelbuettel/rcppcctz" target="_blank">GitHub repository</a>.</p>
<p>
This post by <a rel="nofollow" href="http://dirk.eddelbuettel.com/" target="_blank">Dirk Eddelbuettel</a> originated on his <a rel="nofollow" href="http://dirk.eddelbuettel.com/blog/" target="_blank">Thinking inside the box</a> blog. Please report excessive re-aggregation in third-party for-profit settings.</p>
<p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="http://dirk.eddelbuettel.com/blog/2018/10/14#rcppcctz_0.2.5"> Thinking inside the box </a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/e1d2DhSbuJI" height="1"></a></div>