timechange v0.0.2

0

Monthly downloads

0th

Percentile

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.

Readme

Build Status CRAN RStudio mirror downloads CRAN version

R build status

timechange

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_get: get components (hour, day etc) of date-time objects
  • 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 possible.

Functions in timechange

Name Description
time_get Get components of a date-time object
time_round Round, floor and ceiling for date-time objects
timechange-package Package timechange
time_update Update components of a date-time object
time-zones Time-zone manipulation
time_add Arithmetics with periods
No Results!

Last month downloads

Details

License GPL-3
Encoding UTF-8
LinkingTo Rcpp
LazyData true
SystemRequirements 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.
BugReports https://github.com/vspinu/timechange/issues
URL https://github.com/vspinu/timechange/
RoxygenNote 7.1.1
NeedsCompilation yes
Packaged 2020-10-05 07:39:27 UTC; vspinu
Repository CRAN
Date/Publication 2020-10-05 09:40:02 UTC
suggests knitr , testthat
depends R (>= 3.3)
imports Rcpp (>= 0.12)
Contributors Google Inc.

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/timechange)](http://www.rdocumentation.org/packages/timechange)