https://github.com/vspinu/timechange
Efficient Updating of Date-Times
https://github.com/vspinu/timechange
ceiling date-time period r-package rounding time time-zones update
Last synced: 3 days ago
JSON representation
Efficient Updating of Date-Times
- Host: GitHub
- URL: https://github.com/vspinu/timechange
- Owner: vspinu
- License: gpl-3.0
- Created: 2018-04-14T20:37:21.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-01-29T23:00:09.000Z (about 1 year ago)
- Last Synced: 2025-02-15T09:11:30.824Z (6 days ago)
- Topics: ceiling, date-time, period, r-package, rounding, time, time-zones, update
- Language: C++
- Size: 351 KB
- Stars: 31
- Watchers: 3
- Forks: 3
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - vspinu/timechange - Efficient Updating of Date-Times (C++)
README
[](https://github.com/vspinu/timechange/actions)
[](https://github.com/vspinu/timechange/actions/workflows/R-CMD-check.yaml)
[](https://CRAN.R-project.org/package=timechange)## 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`](https://cran.r-project.org/package=nanotime) is [planned](https://github.com/vspinu/timechange/issues/1)).
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 arithmeticWhen it makes sense functions provide a refined control of what happens in ambiguous situations through `roll_month` and `roll_dst` arguments.