Description
Efficient Manipulation of Date-Times.
Description
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.md
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 objectstime_update
: update date-time objectstime_round
,time_ceiling
andtime_floor
: date-time rounding methodstime_force_tz
,time_at_tz
andtime_clock_at_tz
: updating of time-zones and time/clock extraction at different time-zonestime_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.