#include <Rcpp.h>
Public Member Functions | |
RcppDate () | |
RcppDate (int Rjdn) | |
RcppDate (int month_, int day_, int year_) | |
int | getMonth () const |
int | getDay () const |
int | getYear () const |
int | getJDN () const |
Static Public Attributes | |
static const int | Jan1970Offset = 2440588 |
static const int | QLtoJan1970Offset = 25569 |
Private Member Functions | |
void | mdy2jdn () |
void | jdn2mdy () |
Private Attributes | |
int | month |
int | day |
int | year |
int | jdn |
Friends | |
RcppDate | operator+ (const RcppDate &date, int offset) |
int | operator- (const RcppDate &date1, const RcppDate &date2) |
bool | operator< (const RcppDate &date1, const RcppDate &date2) |
bool | operator> (const RcppDate &date1, const RcppDate &date2) |
bool | operator== (const RcppDate &date1, const RcppDate &date2) |
bool | operator>= (const RcppDate &date1, const RcppDate &date2) |
bool | operator<= (const RcppDate &date1, const RcppDate &date2) |
std::ostream & | operator<< (std::ostream &os, const RcppDate &date) |
Definition at line 47 of file Rcpp.h.
RcppDate::RcppDate | ( | ) | [inline] |
RcppDate::RcppDate | ( | int | Rjdn | ) | [inline] |
Definition at line 58 of file Rcpp.h.
References Jan1970Offset, jdn, and jdn2mdy().
RcppDate::RcppDate | ( | int | month_, | |
int | day_, | |||
int | year_ | |||
) | [inline] |
void RcppDate::mdy2jdn | ( | ) | [private] |
void RcppDate::jdn2mdy | ( | ) | [private] |
Definition at line 856 of file Rcpp.cpp.
References day, jdn, month, and year.
Referenced by operator+(), and RcppDate().
int RcppDate::getMonth | ( | ) | const [inline] |
Definition at line 66 of file Rcpp.h.
References month.
Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().
int RcppDate::getDay | ( | ) | const [inline] |
Definition at line 67 of file Rcpp.h.
References day.
Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().
int RcppDate::getYear | ( | ) | const [inline] |
Definition at line 68 of file Rcpp.h.
References year.
Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().
int RcppDate::getJDN | ( | ) | const [inline] |
Definition at line 69 of file Rcpp.h.
References jdn.
Referenced by RcppResultSet::add(), RcppFunction::appendToRList(), and ColDatum::getDateRCode().
std::ostream& operator<< | ( | std::ostream & | os, | |
const RcppDate & | date | |||
) | [friend] |
int RcppDate::month [private] |
Definition at line 51 of file Rcpp.h.
Referenced by getMonth(), jdn2mdy(), mdy2jdn(), operator+(), and RcppDate().
int RcppDate::day [private] |
Definition at line 51 of file Rcpp.h.
Referenced by getDay(), jdn2mdy(), mdy2jdn(), operator+(), and RcppDate().
int RcppDate::year [private] |
Definition at line 51 of file Rcpp.h.
Referenced by getYear(), jdn2mdy(), mdy2jdn(), operator+(), and RcppDate().
int RcppDate::jdn [private] |
Definition at line 52 of file Rcpp.h.
Referenced by getJDN(), jdn2mdy(), mdy2jdn(), operator+(), operator-(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and RcppDate().
const int RcppDate::Jan1970Offset = 2440588 [static] |
Definition at line 55 of file Rcpp.h.
Referenced by RcppResultSet::add(), RcppFunction::appendToRList(), ColDatum::getDateRCode(), and RcppDate().
const int RcppDate::QLtoJan1970Offset = 25569 [static] |