<p><div><div><div><div data-width="100" data-show-faces="false" data-send="true" data-layout="button_count" data-height="21" data-href="https://www.r-bloggers.com/anytime-0-2-1/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2017/02/10#anytime_0.2.1"> Thinking inside the box </a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>An updated <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> package arrived at <a target="_blank" rel="nofollow" href="https://cran.r-project.org/">CRAN</a> yesterday. This is release number nine, and the first with a little gap to the prior release on Christmas Eve as the features are stabilizing, as is the implementation.</p>
<p><a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> is a very focused package aiming to do just one thing <em>really</em> well: to convert <em>anything</em> in integer, numeric, character, factor, ordered, … format to either POSIXct or Date objects — and to do so <em>without requiring a format string</em>. See the <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> page, or the <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime">GitHub README.md</a> for a few examples.</p>
<p>This releases addresses two small things related to the <code>anydate()</code> and <code>utcdate()</code> conversion (see below) and adds one nice new format, besides some internal changes detailed below:</p>
<div>
<pre><code>R><span> </span><span>library</span>(anytime)
R><span> </span><span>anytime</span>(<span>&quot;Thu Sep 01 10:11:12 CDT 2016&quot;</span>)
[<span>1</span>] <span>&quot;2016-09-01 10:11:12 CDT&quot;</span>
R><span> </span><span>anytime</span>(<span>&quot;Thu Sep 01 10:11:12.123456 CDT 2016&quot;</span>) <span># with frac. seconds</span>
[<span>1</span>] <span>&quot;2016-09-01 10:11:12.123456 CDT&quot;</span>
R><span> </span></code></pre>
</div>
<p>Of course, all commands are also fully vectorised. See the <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> page, or the <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime">GitHub README.md</a> for more examples.</p>
<blockquote>
<h4>Changes in anytime version 0.2.1 (2017-02-09)</h4>
<ul>
<li>
<p>The new <code>DatetimeVector</code> class from <a target="_blank" rel="nofollow" href="https://cran.r-project.org/package=Rcpp"><span>Rcpp</span></a> is now used, and proper versioned Depends: have been added (<a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/pull/43">#43</a>)</p>
</li>
<li>
<p>The <code>anydate</code> and <code>utcdate</code> functions convert again from factor and ordered (<a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/pull/46">#46</a> closing <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues/44">#44</a>)</p>
</li>
<li>
<p>A format similar to RFC 28122 but with additonal timezone text can now be parsed (<a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/pull/48">#48</a> closing <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues/47">#47</a>)</p>
</li>
<li>
<p>Conversion from <code>POSIXt</code> to <code>Date</code> now also respect the timezone (<a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/pull/50">#50</a> closing <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues/49">#49</a>)</p>
</li>
<li>
<p>The internal <code>.onLoad</code> functions was updated</p>
</li>
<li>
<p>The Travis setup uses https to fetch the run script</p>
</li>
</ul>
</blockquote>
<p>Courtesy of <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/">CRANberries</a>, there is a comparison to <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/cranberries/2017/02/09#anytime_0.2.1">the previous release</a>. More information is on the <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> page.</p>
<p>For questions or comments use the <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues">issue tracker</a> off the <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime">GitHub repo</a>.</p>
<p>
This post by <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/">Dirk Eddelbuettel</a> originated on his <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/blog/">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/2017/02/10#anytime_0.2.1"> 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 title="The R Project for Statistical Computing" rel="nofollow" href="https://www.r-project.org/">R</a> news and <a title="R tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/search/data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data">Big Data, <a title="R jobs" rel="nofollow" href="https://www.r-users.com/">R jobs</a>, visualization (<a title="ggplot and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/search/map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/search/animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/search/sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/search/SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/search/eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/search/git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/search/hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/search/regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/search/PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/search/time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/search/trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/_uE1_dEF064"></a></div>