https://github.com/eddelbuettel/rcppbdt
Rcpp bindings for Boost Date_Time
https://github.com/eddelbuettel/rcppbdt
Last synced: 10 months ago
JSON representation
Rcpp bindings for Boost Date_Time
- Host: GitHub
- URL: https://github.com/eddelbuettel/rcppbdt
- Owner: eddelbuettel
- Created: 2013-12-16T01:24:42.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2025-03-11T00:07:55.000Z (over 1 year ago)
- Last Synced: 2025-08-12T00:50:37.538Z (10 months ago)
- Language: C++
- Size: 281 KB
- Stars: 18
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
Awesome Lists containing this project
README
## RcppBDT: R bindings for Boost Date.Time
[](https://github.com/eddelbuettel/rcppbdt/actions?query=workflow%3Aci)
[](https://www.gnu.org/licenses/gpl-2.0.html)
[](https://cran.r-project.org/package=RcppBDT)
[](https://eddelbuettel.r-universe.dev/rcppbdt)
[](https://www.r-pkg.org/pkg/RcppBDT)
[](https://github.com/eddelbuettel/rcppbdt)
### About
This package provides R with access to [Boost
Date_Time](https://www.boost.org/doc/libs/release/doc/html/date_time.html)
functionality by using Rcpp modules.
It is effectively a precursor to the newer and more polished packages [anytime](https://github.com/eddelbuettel/anytime).
### Core Features available via [Boost Date_Time](https://www.boost.org/doc/libs/release/doc/html/date_time.html)
* [Posix time ("Ptime")](https://www.boost.org/doc/libs/release/doc/html/date_time/posix_time.html): Nano-second precision calculations and datetime calculations
* [Date](https://www.boost.org/doc/libs/release/doc/html/date_time/gregorian.html): basic date calculation support
* [Date duration](https://www.boost.org/doc/libs/release/doc/html/date_time/gregorian.html#date_time.gregorian.date_duration): Calculations on intervals ("days")
* [Local time](https://www.boost.org/doc/libs/release/doc/html/date_time/local_time.html): Portable time zone support
Each of these has an individual demo file.
### Status
The package now takes advantage of R 3.1.0 and uses the C++11 standard to get
`long long` support which is needed for high-resolution timing support on all
platforms.
### TODO
All calculations work as implemented, but the package still has a "proof of
concept" flavour as they are not vectorised at the R level. All the relevant operators
operators would have to be defined. That is mostly tedious which is one of
the reasons I have not gotten around to it yet. Get in touch if you are
interested.
### License
GPL (>= 2)