Learn R Programming

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

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.

Copy Link

Version

Install

install.packages('timechange')

Monthly Downloads

786,433

Version

0.2.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Vitalie Spinu

Last Published

January 11th, 2023

Functions in timechange (0.2.0)

time_round

Round, floor and ceiling for date-time objects
time_update

Update components of a date-time object
time-zones

Time-zone manipulation
timechange-package

Package timechange
time_get

Get components of a date-time object
time_add

Arithmetics with periods