Efficient Changing of Date-Times

Efficient routines for manipulation of date-time objects while accounting for time-zones and daylight saving times. The package includes utilities for updating of date-time components (year, month, day etc.), modification of time-zones, rounding of date-times, period addition and subtraction etc. Parts of the 'CCTZ' source code, released under the Apache 2.0 License, are included in this package. See < https://github.com/google/cctz> for more details.


Build Status CRAN RStudio mirror downloads CRAN version

Utilities for efficient manipulation of date-time objects while accounting for time-zones and day-light saving times. Supported date time classes are Date, POSIXct, POSIXlt (nanosecond is planned).

Currently implemented:

  • time_update: update date-time objects
  • time_round, time_ceiling and time_floor: date-time rounding methods
  • time_force_tz, time_at_tz and time_clock_at_tz: updating of time-zones and time/clock extraction at different time-zones
  • time_add,time_subtract: fast period arithmetic

When it makes sense functions provide a refined control of what happens in ambiguous situations through roll_month and roll_dst arguments.

Stability

Package is in beta state. API changes are still likely.

News

Version 0.0.1

Initial Release

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("timechange")

0.0.1 by Vitalie Spinu, 10 months ago


https://github.com/vspinu/timechange/


Report a bug at https://github.com/vspinu/timechange/issues


Browse source code at https://github.com/cran/timechange


Authors: Vitalie Spinu [aut, cre] , Google Inc. [ctb, cph]


Documentation:   PDF Manual  


Task views: Time Series Analysis


GPL-3 license


Imports Rcpp

Suggests testthat, knitr

Linking to Rcpp

System requirements: A system with zoneinfo data (e.g. /usr/share/zoneinfo) as well as a recent-enough C++11 compiler (such as g++-4.8 or later). On Windows the zoneinfo included with R is used.


See at CRAN