Learn R Programming

The R package 'timeDate' provides class 'timeDate' for working with date/time. The 'timeDate' class fulfils the conventions of the ISO 8601 standard as well as of the ANSI C and POSIX standards. Beyond these standards it provides the "Financial Center" concept which allows to handle data records collected in different time zones and mix them up to have always the proper time stamps with respect to your personal financial center, or alternatively to the GMT reference time. It can thus also handle time stamps from historical data records from the same time zone, even if the financial centers changed day light saving times at different calendar dates.

Package timeDate is part of the Rmetrics suite of R packages and is developed on R-forge at timeDate. The root of Rmetrics is at R-forge.

Installing timeDate

Install the latest stable version of timeDate from CRAN:

install.packages("timeDate")

You can install the development version of timeDate from R-forge:

install.packages("timeDate", repos = "http://R-Forge.R-project.org")

To report bugs visit Rmetrics.

Documentation

You can view the documentation of timeDate at timeDateDoc (html site created with 'pkgdown') or download the reference manual of the latest release from CRAN.

Copy Link

Version

Install

install.packages('timeDate')

Monthly Downloads

251,915

Version

4041.110

License

GPL (>= 2)

Last Published

September 22nd, 2024

Functions in timeDate (4041.110)

unique

Remove duplicated dates from 'timeDate' objects
Easter

Date of Easter
round

Rounding and truncating 'timeDate' objects
sample

Resampling 'timeDate' objects
timeDate-package

Utilities and tools package
align

Align a 'timeDate' object to regular date/time stamps
firstDay

First and last days
isBizday

Check if dates are business or holidays
dayOfWeek

Day of the week
RmetricsOptions

Rmetrics option settings
diff

Lagged 'timeDate' differences
show-methods

Show methods
nDay

n-th n-day dates
julian

Julian counts and calendar atoms
timeDate

Create 'timeDate' objects
subset

Subsetting a 'timeDate' object
sort

Sorting 'timeDate' objects
rep

Replicating 'timeDate' objects
c

Concatenating 'timeDate' objects
difftimeDate

Difference of two 'timeDate' objects
summary-methods

Summary method
holiday

Holiday dates
holidayTSX

TSX holiday calendar
length

Length of a 'timeDate' object
format-methods

Format methods
isRegular

Checks if a date/time vector is regular
rev

Reverse 'timeDate' objects
holidayZURICH

Zurich holiday calendar
start

Terminal times and range
isWeekday

Weekdays and weekends
myUnits

Frequency of date/time units
holidayDate

Public and ecclesiastical holidays
plot-methods

Plot methods
blockStart

Equally sized 'timeDate' blocks
dayOfYear

Day of the year
kurtosis

Kurtosis
coerceToOther

Coercion from 'timeDate' to other classes
.endpoints

Endpoints indexes
onOrAfter

On-or-after/before dates
specialHolidayGB

Dates of special one-off holidays in the UK
window

Time windows
currentYear

Current year
Sys.timeDate

System time as 'timeDate' object
myFinCenter

myFinCenter variable
finCenter

Financial Center of a timeDate object
earlyCloseNYSE

Early closings of the New York Stock exchange
timeDate-class

Class "timeDate"
timeCalendar

'timeDate' from calendar atoms
periods

Rolling periods
holidayNERC

NERC holiday calendar
holidayNYSE

NYSE holiday calendar
listFinCenter

List of financial centers
midnightStandard

Midnight standard
names-methods

The names of a 'timeDate' object
timeDateMathOps

Mathematical operations with 'timeDate' objects
holidayLONDON

London Bank Holidays
DaylightSavingTime

Daylight Saving Time Rules
timeSequence

Regularly spaced 'timeDate' objects
listHolidays

List of holidays
is.na-methods

Methods for 'is.na'
skewness

Skewness
rulesFinCenter

Financial centers DST rules
whichFormat

Format recognation