<p>A new version of the <a href="http://dirk.eddelbuettel.com/code/nanotime.html">nanotime</a> package for working with nanosecond timestamps just arrived on <a href="https://cran.r-project.org/">CRAN</a>.</p>
<p><a href="http://dirk.eddelbuettel.com/code/nanotime.html">nanotime</a> uses the <a href="http://dirk.eddelbuettel.com/code/rcpp.cctz.html">RcppCCTZ</a> package for (efficient) high(er) resolution time parsing and formatting up to nanosecond resolution, and the <a href="https://cran.r-project.org/package=bit64">bit64</a> package for the actual <code>integer64</code> arithmetic.</p>
<p>Thanks to a metric ton of work by <a href="https://gitlab.com/lsilvest">Leonardo Silvestri</a>, the package now uses S4 classes internally allowing for greater consistency of operations on nanotime objects.</p>
<blockquote>
<h4>Changes in version 0.2.0 (2017-06-22)</h4>
<ul>
<li><p>Rewritten in S4 to provide more robust operations (<a href="https://github.com/eddelbuettel/nanotime/pull/17">#17</a> by Leonardo)</p></li>
<li><p>Ensure <code>tz=&quot;&quot;</code> is treated as unset (Leonardo in <a href="https://github.com/eddelbuettel/nanotime/pull/20">#20</a>)</p></li>
<li><p>Added <code>format</code> and <code>tz</code> arguments to <code>nanotime</code>, <code>format</code>, <code>print</code> (<a href="https://github.com/eddelbuettel/nanotime/pull/22">#22</a> by Leonardo and Dirk)</p></li>
<li><p>Ensure printing respect <code>options()$max.print</code>, ensure names are kept with vector (<a href="https://github.com/eddelbuettel/nanotime/pull/23">#23</a> by Leonardo)</p></li>
<li><p>Correct <code>summary()</code> by defining <code>names&lt;-</code> (Leonardo in <a href="https://github.com/eddelbuettel/nanotime/pull/25">#25</a> fixing <a href="https://github.com/eddelbuettel/nanotime/issues/24">#24</a>)</p></li>
<li><p>Report error on operations that are meaningful for type; handled NA, NaN, Inf, -Inf correctly (Leonardo in <a href="https://github.com/eddelbuettel/nanotime/pull/27">#27</a> fixing <a href="https://github.com/eddelbuettel/nanotime/issues/26">#26</a>)</p></li>
</ul>
</blockquote>
<p>We also have a <a href="http://dirk.eddelbuettel.com/cranberries/2017/06/22#nanotime_0.2.0">diff to the previous version</a> thanks to <a href="http://dirk.eddelbuettel.com/cranberries">CRANberries</a>. More details and examples are at the <a href="http://dirk.eddelbuettel.com/code/nanotime.html">nanotime page</a>; code, issue tickets etc at the <a href="https://github.com/eddelbuettel/nanotime">GitHub repository</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></p>