<p>A new release of <a href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> is now on <a href="https://cran.r-project.org/">CRAN</a> following the four releases in September and October.</p>
<p><a href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> aims to convert anything in integer, numeric, character, factor, ordered, ... format to POSIXct (or Date) objects -- and does so without requiring a format string. See the <a 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 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 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 href="https://github.com/eddelbuettel/anytime/pull/30">#30</a> fixing issue <a 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 href="https://github.com/eddelbuettel/anytime/pull/27">#27</a> fixing issue <a 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 href="https://github.com/eddelbuettel/anytime/issues/16">#16</a>)</p></li>
</ul></blockquote>
<p>Courtesy of <a href="http://dirk.eddelbuettel.com/cranberries/">CRANberries</a>, there is a comparison to <a href="http://dirk.eddelbuettel.com/cranberries/2016/10/20#anytime_0.0.4">the previous release</a>. More information is on the <a href="http://dirk.eddelbuettel.com/code/anytime.html">anytime</a> page.</p>
<p>For questions or comments use the <a href="https://github.com/eddelbuettel/anytime/issues">issue tracker</a> off the <a href="https://github.com/eddelbuettel/anytime">GitHub repo</a>.</p>
<p>
This post by <a href="http://dirk.eddelbuettel.com/">Dirk Eddelbuettel</a> originated on his <a 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>