Date and Time Extensions for the 'rebus' Package

Build regular expressions piece by piece using human readable code. This package contains date and time functionality, and is primarily intended to be used by package developers.


Project Status: Active - The project has reached a stable, usable state and is being actively developed. Is the package on CRAN? Build Status

This package contains datetime-related functionality for the rebus package. It is primarily intended for other R package developers. For interactive use, try rebus instead.

Build regular expressions in a human readable way

Regular expressions are a very powerful tool, but the syntax is terse enough to be difficult to read. This makes bugs easy to introduce and hard to find. This package contains functions to make building regular expressions easier.

Installation

To install the stable version, type:

install.packages("rebus.datetimes")

To install the development version, you first need the devtools package.

install.packages("devtools")

Then you can install the rebus.datetimes package using

library(devtools)
install_github("richierocks/rebus.datetimes")

Package contents

datetime accepts a strptime-style format string, and creates a regular expression to match it. You can choose the locale for matching (month names differ between locales), and whether the regex is used for input or output (input needs to be less strict).

iso_date, iso_time and iso_datetime provide regexes to match ISO 8601 standard dates and times.

Constants are available for date components. For example, SECOND matches seconds, TIMEZONE matches timezones, etc.

News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rebus.datetimes")

0.0-1 by Richard Cotton, 3 years ago


Browse source code at https://github.com/cran/rebus.datetimes


Authors: Richard Cotton [aut, cre]


Documentation:   PDF Manual  


Unlimited license


Imports rebus.base

Suggests stats, testthat


Imported by rebus.

Suggested by poio.


See at CRAN