Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 months 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 (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-05-29T15:08:07.000Z (over 1 year ago)
- Last Synced: 2023-12-13T05:47:57.255Z (about 1 year ago)
- Topics: ceiling, date-time, period, r-package, rounding, time, time-zones, update
- Language: C++
- Size: 342 KB
- Stars: 27
- Watchers: 4
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- jimsghstars - vspinu/timechange - Efficient Updating of Date-Times (C++)
README
[![R build status](https://github.com/vspinu/timechange/workflows/R-CMD-check/badge.svg)](https://github.com/vspinu/timechange/actions)
[![R-CMD-check](https://github.com/vspinu/timechange/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/vspinu/timechange/actions/workflows/R-CMD-check.yaml)
[![CRAN status](https://www.r-pkg.org/badges/version/timechange)](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.