<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-1-0-new-features-some-fixes/"></div></div><div><a data-url="https://www.r-bloggers.com/anytime-0-1-0-new-features-some-fixes/" data-counturl="https://www.r-bloggers.com/anytime-0-1-0-new-features-some-fixes/" data-count="horizontal" data-text="anytime 0.1.0: New features, some fixes" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="http://dirk.eddelbuettel.com/blog/2016/11/07#anytime_0.1.0"> 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 release of <a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> is now on <a target="_blank" rel="nofollow" href="https://cran.r-project.org/">CRAN</a> following the four releases in September and October.</p>
<p><a target="_blank" rel="nofollow" href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> aims to convert <em>anything</em> in integer, numeric, character, factor, ordered, … format to POSIXct (or Date) objects — and does 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 for a few examples.</p>
<p>Release 0.1.0 adds several new features. New functions <code>utctime()</code> and <code>utcdate()</code> parse to coordinated universal time (UTC). Several new formats were added. Digit-only formats like ‘YYYYMMDD’ with or without ‘HHMMSS’ (or even with fractional secodns ‘HHMMSS.ffffff’) are supported more thoroughly. Some examples:</p>
<div>
<pre><code>R><span> </span><span>library</span>(anytime)
R><span> </span><span>anytime</span>(<span>&quot;20161107 202122&quot;</span>)   ## all digits
[<span>1</span>] <span>&quot;2016-11-07 20:21:22 CST&quot;</span>
R><span> </span><span>utctime</span>(<span>&quot;2016Nov07 202122&quot;</span>)  ## UTC parse example
[<span>1</span>] <span>&quot;2016-11-07 14:21:22 CST&quot;</span>
R><span> </span></code></pre>
</div>
<p>The <code>NEWS</code> file summarises the release:</p>
<blockquote>
<h4>Changes in anytime version 0.1.0 (2016-11-06)</h4>
<ul>
<li>
<p>New functions <code>utctime()</code> and <code>utcdate()</code> were added to parse input as coordinated universal time; the functionality is also available in <code>anytime()</code> and <code>anydate()</code> via a new argument <code>asUTC</code> (PR <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/pull/22">#22</a>)</p>
</li>
<li>
<p>New (date)time format for RFC822-alike dates, and expanded existing datetime formats to all support fractional seconds (PR <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/pull/21">#21</a>)</p>
</li>
<li>
<p>Extended functionality to support not only ‘YYYYMMDD’ (without a separator, and not covered by Boost) but also with ‘HHMM’, ‘HHMMSS’ and ‘HHMMSS.ffffff’ (PR <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/pull/30">#30</a> fixing issue <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues/29">#29</a>)</p>
</li>
<li>
<p>Extended functionality to support ‘HHMMSS[.ffffff]’ following other date formats.</p>
</li>
<li>
<p>Documentation and tests have been expanded; typos corrected</p>
</li>
<li>
<p>New (unexported) helper functions <code>setTZ</code>, <code>testOutput</code>, <code>setDebug</code></p>
</li>
<li>
<p>The <code>testFormat</code> (and <code>testOutput</code>) functions cannot be called under RStudio (PR <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/pull/27">#27</a> fixing issue <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues/25">#25</a>).</p>
</li>
<li>
<p>More robust support for non-finite values such as <code>NA</code>, <code>NaN</code> or <code>Inf</code> (Fixing issue <a target="_blank" rel="nofollow" href="https://github.com/eddelbuettel/anytime/issues/16">#16</a>)</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/2016/10/20#anytime_0.0.4">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><div><div data-width="55" data-show-faces="false" data-send="true" data-layout="box_count" data-height="62" data-href="https://www.r-bloggers.com/anytime-0-1-0-new-features-some-fixes/"></div></div><div><a data-url="https://www.r-bloggers.com/anytime-0-1-0-new-features-some-fixes/" data-counturl="https://www.r-bloggers.com/anytime-0-1-0-new-features-some-fixes/" data-count="vertical" data-text="anytime 0.1.0: New features, some fixes" class="twitter-share-button" data-via="rbloggers" href="https://twitter.com/share"></a></div><div></div></div><div></div></div>
<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/2016/11/07#anytime_0.1.0"> 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/?s=tutorial">tutorials</a> on topics such as: <a title="Data science" rel="nofollow" href="https://www.r-bloggers.com/?s=data%20science">Data science</a>, <a title="Big Data" rel="nofollow" href="https://www.r-bloggers.com/?s=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/?s=ggplot2">ggplot2</a>, <a title="Boxplots using lattice and ggplot2 tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=boxplot">Boxplots</a>, <a title="Maps and gis" rel="nofollow" href="https://www.r-bloggers.com/?s=map">maps</a>, <a title="Animation in R" rel="nofollow" href="https://www.r-bloggers.com/?s=animation">animation</a>), programming (<a title="RStudio IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=RStudio">RStudio</a>, <a title="Sweave and literate programming" rel="nofollow" href="https://www.r-bloggers.com/?s=sweave">Sweave</a>, <a title="LaTeX in R" rel="nofollow" href="https://www.r-bloggers.com/?s=LaTeX">LaTeX</a>, <a title="SQL and databases" rel="nofollow" href="https://www.r-bloggers.com/?s=SQL">SQL</a>, <a title="Eclipse IDE for R" rel="nofollow" href="https://www.r-bloggers.com/?s=eclipse">Eclipse</a>, <a title="git and github, Version Control System" rel="nofollow" href="https://www.r-bloggers.com/?s=git">git</a>, <a title="Large data in R using Hadoop" rel="nofollow" href="https://www.r-bloggers.com/?s=hadoop">hadoop</a>, <a title="Web Scraping of google, facebook, yahoo, twitter and more using R" rel="nofollow" href="https://www.r-bloggers.com/?s=Web+Scraping">Web Scraping</a>) statistics (<a title="Regressions and ANOVA analysis tutorials" rel="nofollow" href="https://www.r-bloggers.com/?s=regression">regression</a>, <a title="principal component analysis tutorial" rel="nofollow" href="https://www.r-bloggers.com/?s=PCA">PCA</a>, <a title="Time series" rel="nofollow" href="https://www.r-bloggers.com/?s=time+series">time series</a>, <a title="finance trading" rel="nofollow" href="https://www.r-bloggers.com/?s=trading">trading</a>) and more...
<img height="1" alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/R5Ay2ZcRRto"></a></div>