2022-10-28 Dirk Eddelbuettel * src/init.c: Add 'void' for proper prototypes pleasing clang-15 * .github/workflows/ci.yaml (jobs): Update to actions/checkout@v3 2022-03-29 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Release 0.2.5 2022-03-27 Dirk Eddelbuettel * src/toPOSIXct.cpp: Switch to including RcppBDT.h to ensure consistent compilation settings across compilation units 2022-03-26 Dirk Eddelbuettel * src/init.c: Correct signature of one declaration * src/Makevars: Minor cleanup * src/Makevars.win: Idem 2021-12-08 Dirk Eddelbuettel * README.md: Remove unused continuous integration artifact and badge 2021-08-15 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Release 0.2.4 * DESCRIPTION: Removed two dated versioned Depends * src/toPOSIXct.cpp: Now uses Rcpp::Datetime and optional format instead of strptime which is not always available; disambiguated one assignment to please clang; removed explicit cross reference to anytime package * src/init.c (CallEntries): Updated for new format argument * man/toPOSIXct.Rd: Removed explicit cross-references and updated documentation * man/charToPOSIXct.Rd: Idem * README.md: Updated URLs for Boost * man/*: Idem 2021-04-19 Dirk Eddelbuettel * DESCRIPTION (URL, BugRreports): Added to DESCRIPTION file 2021-01-02 Dirk Eddelbuettel * .github/workflows/ci.yaml: Add CI runner using r-ci * README.md: Add new badge 2020-07-29 Dirk Eddelbuettel * README.md: Updated, added some badges * .travis.yml: Update to 'bionic' and R 4.0.* 2019-12-19 Dirk Eddelbuettel * DESCRIPTION (Version, Date): Roll version number and date * src/Makevars (PKG_CPPFLAGS): Add -DBOOST_NO_AUTO_PTR for quieter build * src/init.c: Added, based on pnrrs.r plus post-processing for Modules * R/RcppExports.R: Regenerated * src/RcppExports.cpp: Idem 2018-12-23 Dirk Eddelbuettel * NAMESPACE: Add .registration=TRUE to useDynLib() 2017-08-26 Dirk Eddelbuettel * .travis.yml (before_install): Use https for curl fetch 2017-07-09 Dirk Eddelbuettel * R/bdt.R (getLastDayOfWeekInMonth, getFirstDayOfWeekInMonth): Use dow instead of nthday for first argument * man/dateFuntions.Rd: Corresponding change 2016-09-18 Dirk Eddelbuettel * src/toPOSIXct.cpp: Added seealso reference to anytime 2016-09-11 Dirk Eddelbuettel * src/toPOSIXct.cpp: Added 'seealso' reference to anytime which was developed based on the initial work here * man/toPOSIXct.Rd: Ditto 2016-09-05 Dirk Eddelbuettel * src/toPOSIXct.cpp: All functions return NumericVector types and deal with input timezone; (comparison) functions charToPOSIXct and cToPOSIXct have documentation too * man/toPOSIXct.Rd: Updated * man/cToPOSIXct.Rd: Added * man/charToPOSIXct.Rd: Added * demo/00Index: Updated * .travis.yml: Switch to using run.sh for Travis CI 2016-08-31 Dirk Eddelbuettel * src/toPOSIXct.cpp: Additional format using '%a %b %d' 2015-03-25 Dirk Eddelbuettel * src/toPOSIXct.cpp:(cToPOSIXct): C library strptime for timimg comparison 2015-03-24 Dirk Eddelbuettel * src/toPOSIXct.cpp (charToPOSIXct): Smaller version to test timing but commented out as it needs to link with libboost_date_time * demo/toPOSIXctTiming.R: Simple timing benchmark 2015-03-20 Dirk Eddelbuettel * demo/toPOSIXct.R: Expanded demo with more examples * src/toPOSIXct.cpp: Also support %b and %B formats for month 2015-03-19 Dirk Eddelbuettel * src/toPOSIXct.cpp: Now provides toPOSIXct() function, so source file renamed as well from parsePOSIXt.cpp * man/toPOSIXct.Rd: Renamed from parsePOSIXt.Rd * demo/toPOSIXct.R: Renamed from parsePOSIXt.R; uses toPOSIXct() 2015-03-18 Dirk Eddelbuettel * src/parsePOSIXt.cpp: Removed some no-longer-used code, add explicit from conversion from YYYYMMDD to YYYY/MM/DD, finer distinction between integer and numeric * demo/parsePOSIXt.R: Extended demo file with more examples 2015-03-17 Dirk Eddelbuettel * src/parsePOSIXt.cpp: Added two more formats; also added documentation for help page * man/parsePOSIXt.Rd: Generated 2015-03-16 Dirk Eddelbuettel * src/parsePOSIXt.cpp (parsePOSIXt): Added vectorized function to parse date(time) from test and return (UTC) POSIXct objects * src/RcppExports.cpp: Auto-created by use of Rcpp Attributes * R/RcppExports.R: Auto-created by use of Rcpp Attributes * demo/parsePOSIXt.R: Simple demo * .travis.yml: Now use ppa:edd/misc for r-cran-rcpp 2014-04-13 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.3 * DESCRIPTION: Depends on R (>= 3.1.0) for C++11 and long long 2014-04-11 Dirk Eddelbuettel * inst/include/RcppBDT.h: Turn off explicit smart pointer conversion via #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS, see http://stackoverflow.com/a/15234757/143305 for more 2014-03-24 Dirk Eddelbuettel * src/Makevars{,.win} (PKG_CPPFLAGS): Use '=' instead of '+=' 2014-03-12 Dirk Eddelbuettel * src/Makevars: Updated to current standard of enabling C++11 with R-devel (ie R 3.1.0 with expected release in less than four weeks) * src/Makevars.win: Ditto 2014-03-08 Dirk Eddelbuettel * src/RcppBDTpt.cpp (Rcpp): Bug fix for fractional seconds component of RcppBDTpt as<>() method (with thanks to Castedo Ellerman) 2014-02-21 Dirk Eddelbuettel * src/Makevars: Simplified for use with Rcpp (>= 0.11.0) * src/Makevars.win: Ditto * src/Makevars: Define 'USE_CXX11=' for use with R-devel as we need C++11 for the 'long long int' type used on 64-bit machines for int64 (or else the build fails on Windows / win-builder) * src/Makevars.win: Ditto [ in branch 0.2.1-updated ] * DESCRIPTION: Version 0.2.2 * This version provides a minimal update to comply with CRAN changes leading up to R release 3.1.0 * Once R 3.1.0 is out, we can release the newer version of the package which (at least currently, and on Windows) needs long long int support which is provided by the C++11 standard available for use with R in release 3.1.0 or later 2014-02-20 Dirk Eddelbuettel * DESCRIPTION: Updated Description text * DESCRIPTION: Updated Import: of Rcpp to 'Rcpp (>= 0.11.0)' 2013-12-21 Dirk Eddelbuettel * R/zzz.R: Some edits, and extensions for date durations * src/RcppBDTdd.cpp: Use Rcpp::stop in case of error, also reworded some error messages 2013-12-15 Dirk Eddelbuettel * DESCRIPTION: Use 'LinkingTo: BH' to simplify builds 2012-11-03 Dirk Eddelbuettel * src/RcppBDTpt.cpp: Added support for adding seconds (converted to duration) to pt objects 2012-10-31 Dirk Eddelbuettel * R/bdt.R: switch from fromDate() to setDate() * inst/include/RcppBDTdt.h: addMonth(), addYears() added which can't be done via date_duration as they need a date for context * src/RcppBDTdt.cpp: idem * src/RcppBDTdd.cpp: added weeks() 2012-10-26 Dirk Eddelbuettel * inst/include/RcppBDTdd.h: New class date_duration * src/RcppBDTdd.cpp: Implementation * R/zzz.R: Dispatching new methods for new class 2012-10-25 Dirk Eddelbuettel * inst/include/RcppBDTdt.h: A few more methods for dates * src/RcppBDTdt.cpp: Idem * inst/include/RcppBDTdu.h: A few more methods for durations * src/RcppBDTdu.cpp: Idem * R/zzz.R: Dispatching to the new methods 2012-10-24 Dirk Eddelbuettel * inst/include/RcppBDTdt.h: Altered several functions to use boost::gregorian::date more frequently as basic return type and rely on Rcpp::wrap() for conversion, rather than always directly converting * src/RcppBDTdt.cpp: Idem * src/RcppBDTdt.cpp: Comparison and (some) Arithmetic support for bdtDt type * man/bdtDu.Rd: Document new methods for Arithmetic and Comparison * man/bdtPt.Rd: Idem 2012-10-24 Romain Francois * inst/include/RcppBDTdu.h: using const bdtDu& instead of object * inst/include/RcppBDTpt.h: using const bdtPt& instead of object 2012-10-23 Romain Francois * src/RcppBDTdu.cpp: using bdtDu* instead of object for function returns 2012-10-22 Dirk Eddelbuettel * inst/include/RcppBDTdt.h: * src/RcppBDTpt.cpp: Comparison and arithmethic support for posix time * R/zzz.R: associated S4 methods * inst/include/RcppBDTdt.h: New file for declaration of time zone class * inst/include/RcppBDTpt.h: New file for declaration of posix time class * inst/include/RcppBDTdu.h: New file for declaration of duration class * inst/include/RcppBDTtz.h: New file for declaration of time zone class 2012-10-22 Romain Francois * src/RcppBDTdu.cpp: implementing functions hours, minutes, ... and operators +,-(du, du) *,/(du,int) * R/zzz.R: associated S4 methods 2012-10-21 Dirk Eddelbuettel * src/RcppBDTdu.cpp: Added method to add posix time, and return the resulting posix time object permitting simple mix of duration and time * src/RcppBDTpt.cpp: Added addHours(), addMinutes(), addSeconds() and addFractionalSeconds() to posix time class, shadowing Boost's side * src/RcppBDTpt.cpp: Added constructor from numeric 2012-09-22 Dirk Eddelbuettel * src/RcppBDTdt.cpp: Rewrite of the initial Date functionality in the style of the three recently added classes which simplifies things greatly; new class transparently replaces old class 2012-09-02 Dirk Eddelbuettel * R/zzz.R: Added show() and format() methods for the ptime, du and tz modules 2012-09-01 Dirk Eddelbuettel * inst/include/RcppBDT.h: Added declarations for two new templated converters as<>() and wrap() for the boost::posix_time::ptime class * src/RcppBDTpt.cpp (Rcpp): Added implementation for new templated converters as<>(), wrap() for the boost::posix_time::ptime class; simplified existing code by using them; and added new setter from the R Datetime class as well * man/bdtDu.Rd: Added manual page for duration class * man/bdtPt.Rd: Added manual page for ptime class * man/bdtTz.Rd: Added manual page for tzone class * demo/RcppBDTtz.R: Added new demo for tzone class 2012-08-27 Dirk Eddelbuettel * src/RcppBDTpt.cpp: getDatetime() now uses struct tm and mktime which dels correctly with offsets to UTC 2012-08-26 Dirk Eddelbuettel * src/RcppBDTpt.cpp: Started module 'bdtPt' with posix time objects 2012-08-25 Dirk Eddelbuettel * src/RcppBDTdu.cpp: New module 'bdtDu' for duration objects which can represents hours, minutes, seconds, down to milli, micro and nanoseconds (where the last part may be OS-dependent, see Boost docs) 2012-08-24 Dirk Eddelbuettel * src/RcppBDTtz.cpp: Use Language evaluation to get location of zone db file, reducing constructor to single argument for region; also store initial region and added DST start/end time accessors * R/zzz.R: add default display methods for bdtTz objects 2012-08-22 Dirk Eddelbuettel * src/RcppBDTtz.cpp: Rewrote bdtTz to be based on small class wrapping tz_db object plus one pointer both of which are initialized from the constructor 2012-08-20 Dirk Eddelbuettel * src/RcppBDTtz.cpp: New module 'bdtTz' for time zone functionality * R/zzz.R: Load bdtTzMod module on startup * inst/include/RcppBDT.h: Also include local_time.hpp header * inst/data/date_time_zonespec.csv: Time zone data from Boost sources 2012-08-08 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.1 * R/bdt.R (getEndOfBizWeek,getEndOfMonth): Add call to fromDate() to pass the argument to the bdt instance 2012-07-02 Dirk Eddelbuettel * DESCRIPTION: Version 0.2.0 * inst/NEWS.Rd, inst/NEWS: Added 2012-06-30 Dirk Eddelbuettel * R/zzz.R: Updated for R 2.15.1 using loadModule() and evalqOnLoad() * src/RcppBDT.cpp (RCPP_MODULE): Expose the module class as 'bdtDate' * R/zzz.R: Updated accordingly * man/bdt.Rd: Updated accordingly * man/bdt.Rd: Added two required alias'es flagged by R CMD check 2012-04-11 Dirk Eddelbuettel * inst/include/RcppBDT.h, src/RcppBDT.cpp: prefix local #define variable with RcppBDT_ to avoid any possible clashes * inst/include/RcppBDT.h, src/RcppBDT.cpp: remove exception specifications in partial specializations for as and wrap 2012-03-30 Romain Francois * R/zzz.R, RcppBDT.cpp, NAMESPACE, DESCRIPTION: update module initialization 2011-01-17 Dirk Eddelbuettel * DESCRIPTION (Version): bumped to 0.1.0 for first CRAN upload 2011-01-13 Dirk Eddelbuettel * R/zzz.R: added print and format methods * man/bdt.Rd: documented print and format methods * demo/RcppBDT.R: simplied thanks to format method 2011-01-12 Dirk Eddelbuettel * R/zzz.R (.onLoad): import module, construct from class 'date' * demo/RcppBDT.R: adjusted accordingly * R/constants.R: define date constants here and not in zzz.R * cleanup: added simple cleanup script 2011-01-11 Dirk Eddelbuettel * DESCRIPTION (Version): bumped version to 0.0.3 * R/zzz.R: change initialization after borrowing a better approach from John's wls package in the Rcpp repo on R-Forge: now 'bdt' is the default instance of the reference class, and the module code is available via 'bdtMod' 2011-01-08 Dirk Eddelbuettel * man/RcppBDT-package.Rd: updated * man/dateFunctions.Rd: added documentation on functions * man/constants.Rd: added documentation on constants defined * man/bdtEnv.Rd: added documentation for bdtEnv variable * src/RcppBDT.cpp: Added two new functions for date of first and last weekday in a given month and year (eg first Friday in Jan 2011) * R/zzz.R: - defined a number of constants: Sun, Mon, Tue, ... , Sat as well as Jan, Feb, ..., Dec and first, second, ..., fifth - added some documentation on enviroment * R/bdt.R: - added function to export core object for access - changed functions to access core object via per-pack. environment - added functions for first/last day-of-week in month/year - some variables renamed in the process of writing documentation * demo/RcppBDT.R: updated to keep in sync with other changes 2011-01-06 Dirk Eddelbuettel * inst/include/RcppBDT.h: Added paragraph about the UseWithString variable with governs whether input/output functionality is loaded which then requires linking with the Boost Date_Time library. Default is just templates and no input/output given just basic date conversion but no parsing from or formatting to string. * DESCRIPTION: Expanded Description, mentioned optional linking of Boost library to get string to/from date conversion functionality 2011-01-05 Dirk Eddelbuettel * src/RcppBDT.cpp: Expose new functions to compute IMM date (third Wednesday) and the more general 'nth day of mth week' * R/bdt.R: Expose two new functions getIMMDate() and its generalisation getNthDayOfMthWeek() * demo/RcppBDT.R: Also added to demo 2011-01-04 Dirk Eddelbuettel * R/bdt.R: Added a few accessor functions for R * src/RcppBDT.cpp: Added fromDate() setter * R/zzz.R: Make both date module and a class global * demo/RcppBDT.R: Adapted demo accordingly 2011-01-03 Dirk Eddelbuettel * src/Makevars.win: Added -I$(BOOSTLIB) 2011-01-02 Dirk Eddelbuettel * src/RcppBDT.cpp: Modified modules wrapper name to make it clearer which function set and which functions get or convert data * tests/RcppBDT.R: Define simplest test of just calling demo() * inst/include/RcppBDT.h: Defined compile-time variable to allow use of string functions; when not defined we use only pure C++ template and do not need to link against the C++ library from Boost Date.Time * src/RcppBDT.cpp: Make parts of code depend upon new compile variable * src/Makevars: No longer link with -lboost_date_time * demo/RcppBDT.R: Comment-out two string-using functions 2011-01-01 Dirk Eddelbuettel * demo/RcppBDT.R: Added RcppBDT demo showing a few functions 2010-12-24 Dirk Eddelbuettel * Added a few more functions * DESCRIPTION: Set up as a simple package 2010-12-23 Dirk Eddelbuettel * Some first exploration with Rcpp modules around Boost Date.Time using only inline