Learn R Programming

⚠️There's a newer version (0.6-5) of this package.Take me there.

datetimeutils

Utilities for handling dates and times, such as selecting particular days of the week or month, formatting timestamps as required by RSS feeds, or converting timestamp representations of other software (such as 'MATLAB' and 'Excel') to R. The package is lightweight (no dependencies, pure R implementations) and relies only on R's standard classes to represent dates and times ('Date' and 'POSIXt'); it aims to provide efficient implementations, through vectorisation and the use of R's native numeric representations of timestamps where possible.

[More]

Installing the package

The latest released version is available from http://enricoschumann.net. In an R session, just type:

install.packages('datetimeutils', type = 'source',
                 repos = c('http://enricoschumann.net/R', getOption('repos')))

For the latest development version, check out the Git repository and build it. In a shell (e.g. sh or bash):

## FIRST-TIME INSTALLATION
#### cd to parent directory and ...
$ git clone https://github.com/enricoschumann/datetimeutils.git

#### build and install the package
$ Rscript datetimeutils/Scripts/tznames.R
$ R CMD build datetimeutils
$ R CMD INSTALL datetimeutils_0.6-2.tar.gz  ## adjust version number

#### optionally check
$ R CMD check datetimeutils_0.6-2.tar.gz    ## adjust version number



## UPDATING
#### later: cd to parent directory and ...
$ cd datetimeutils
$ git pull
$ cd ..
$ Rscript datetimeutils/Scripts/tznames.R
$ R CMD build datetimeutils
$ R CMD INSTALL datetimeutils_0.6-2.tar.gz  ## adjust version number

Copy Link

Version

Install

install.packages('datetimeutils')

Monthly Downloads

593

Version

0.6-4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Enrico Schumann

Last Published

April 1st, 2024

Functions in datetimeutils (0.6-4)

business_days

Business Days
last_weekday

Functions for Computing Days of the Week
guess_datetime

Guess Timestamp Format
month.name.de

Non-English Month Names and Abbreviations
convert_date

Convert Various Formats to Date
convert_tz

Convert a Timestamp from one Timezone to Another
timegrid

POSIXct Time Grid
rfc822t

Format Date and Time as Described in RFC 822
date1904

Is File Origin 1904?
nth_day

Compute Reference Dates
end_of_period

Handling and Manipulating Dates and Times
tznames

Timezone Names
roundPOSIXt

Round POSIXt Objects to Specified Interval
datetimeutils-package

tools:::Rd_package_title("datetimeutils")