anytime is a very focussed package aiming to do just one thing really well: to convert anything in integer, numeric, character, factor, ordered, ... format to POSIXct (or Date) objects -- and to do so without requiring a format string.
R> library(anytime) R> anytime("20161107 202122") ## all digits  "2016-11-07 20:21:22 CST" R> utctime("2016Nov07 202122") ## UTC parse example  "2016-11-07 14:21:22 CST" R>
Release 0.1.1 robustifies two aspects. The 'digits only' input above extends what Boost Date_Time can parse and relies on simple-enough pre-processing. This operation is now more robust. We also ensure that input already of class
Date is simply passed through by
utcdate(). Last but not least we added code coverage support, which oh-so-predictably lead us to game this metric to reach the elusive 100% coverage.
NEWS file summarises the release:
Changes in anytime version 0.1.1 (2016-11-27)
utcdate()no longer attempt to convert an input value that is already of type
The string splitter (needed for the 'all-digits' formats extending Boost Date_time) is now more defensive about the input argument and more robust. Thanks to Bob Jansen for the heads-up (PR #30 closing issue #29).
Code coverage reporting has been added (PR #31).