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.

Class 'timeInterval', introduced in v4050.111, represents time-date intervals. Suitable metods are defined for manipulating them, including union, intersection, complement, set difference and other utilities.

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

199,528

Version

4051.111

License

GPL (>= 2)

Maintainer

Georgi Boshnakov

Last Published

October 17th, 2025

Functions in timeDate (4051.111)

isRegular

Checks if a date/time vector is regular
julian

Julian counts and calendar atoms
nDay

n-th n-day dates
timeDate-class

Class "timeDate"
periods

Rolling periods
isWeekday

Weekdays and weekends
isBizday

Check if dates are business or holidays
onOrAfter

On-or-after/before dates
firstDay

First and last days
earlyCloseNYSE

Early closings of the New York Stock exchange
holidayLONDON

London Bank Holidays
listHolidays

List of holidays
holidayTSX

TSX holiday calendar
holidayZURICH

Zurich holiday calendar
plot-methods

Plot methods
holiday

Holiday dates
holidayNYSE

NYSE holiday calendar
holidayNERC

NERC holiday calendar
in_int

Set operations on timeInterval objects
holidayDate

Public and ecclesiastical holidays
specialHolidayGB

Dates of special one-off holidays in the UK
names-methods

The names of a 'timeDate' object
myFinCenter

myFinCenter variable
RmetricsOptions

Rmetrics option settings
timeDateMathOps

Mathematical operations with 'timeDate' objects
myUnits

Frequency of date/time units
coerceToOther

Coercion from 'timeDate' to other classes
pasteMat

Concatenate matrix columns, keeping NAs
show-methods

Show methods
currentYear

Current year
timeCalendar

'timeDate' from calendar atoms
timeCeiling

Ceiling (round up) for data-time objects
kurtosis

Kurtosis
Sys.timeDate

System time as 'timeDate' object
blockStart

Equally sized 'timeDate' blocks
window

Time windows
skewness

Skewness
is.na-methods

Methods for 'is.na'
DaylightSavingTime

Daylight Saving Time Rules
finCenter

Financial Center of a timeDate object
whichFormat

Format recognition
timeSequence

Regularly spaced 'timeDate' objects
midnightStandard

Midnight standard
listFinCenter

List of financial centers
timeInterval-methods

Create 'timeInterval' objects
rulesFinCenter

Financial centers DST rules
timeDate

Create 'timeDate' objects
timeInterval-class

Class 'timeInterval'
difftimeDate

Difference of two 'timeDate' objects
round

Rounding and truncating 'timeDate' objects
rev

Reverse 'timeDate' objects
diff

Lagged 'timeDate' differences
sample

Resampling 'timeDate' objects
format-methods

Format methods
length

Length of a 'timeDate' object
summary-methods

Summary method
rep

Replicating 'timeDate' objects
sort

Sorting 'timeDate' objects
dayOfYear

Day of the year
align

Align a 'timeDate' object to regular date/time stamps
timeDate-package

Calendar and date utilities and tools
subset

Subsetting a 'timeDate' object
c

Concatenating 'timeDate' objects
start

Terminal times and range
.endpoints

Endpoints indexes
unique

Remove duplicated dates from 'timeDate' objects
Easter

Date of Easter
dayOfWeek

Day of the week