#include <RcppDate.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 28 of file RcppDate.h.
| RcppDate::RcppDate | ( | ) |
Definition at line 28 of file RcppDate.cpp.
References mdy2jdn().

| RcppDate::RcppDate | ( | int | Rjdn | ) |
Definition at line 34 of file RcppDate.cpp.
References Jan1970Offset, jdn, and jdn2mdy().

| RcppDate::RcppDate | ( | int | month_, | |
| int | day_, | |||
| int | year_ | |||
| ) |
Definition at line 39 of file RcppDate.cpp.
References mdy2jdn().

| int RcppDate::getDay | ( | ) | const [inline] |
Definition at line 42 of file RcppDate.h.
References day.
Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().
| int RcppDate::getJDN | ( | ) | const [inline] |
Definition at line 44 of file RcppDate.h.
References jdn.
Referenced by RcppResultSet::add(), RcppFunction::appendToRList(), and ColDatum::getDateRCode().
| int RcppDate::getMonth | ( | ) | const [inline] |
Definition at line 41 of file RcppDate.h.
References month.
Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().
| int RcppDate::getYear | ( | ) | const [inline] |
Definition at line 43 of file RcppDate.h.
References year.
Referenced by operator<<(), Rcpp_Example(), and RcppParamsExample().
| void RcppDate::jdn2mdy | ( | ) | [private] |
Definition at line 108 of file RcppDate.cpp.
References day, jdn, month, and year.
Referenced by operator+(), and RcppDate().
| void RcppDate::mdy2jdn | ( | ) | [private] |
Definition at line 98 of file RcppDate.cpp.
References day, jdn, month, and year.
Referenced by RcppDate().
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const RcppDate & | date | |||
| ) | [friend] |
int RcppDate::day [private] |
Definition at line 32 of file RcppDate.h.
Referenced by getDay(), jdn2mdy(), mdy2jdn(), and operator+().
const int RcppDate::Jan1970Offset = 2440588 [static] |
Definition at line 36 of file RcppDate.h.
Referenced by RcppResultSet::add(), RcppFunction::appendToRList(), ColDatum::getDateRCode(), and RcppDate().
int RcppDate::jdn [private] |
Definition at line 33 of file RcppDate.h.
Referenced by getJDN(), jdn2mdy(), mdy2jdn(), operator+(), operator-(), operator<(), operator<=(), operator==(), operator>(), operator>=(), and RcppDate().
int RcppDate::month [private] |
Definition at line 32 of file RcppDate.h.
Referenced by getMonth(), jdn2mdy(), mdy2jdn(), and operator+().
const int RcppDate::QLtoJan1970Offset = 25569 [static] |
Definition at line 37 of file RcppDate.h.
int RcppDate::year [private] |
Definition at line 32 of file RcppDate.h.
Referenced by getYear(), jdn2mdy(), mdy2jdn(), and operator+().
1.6.1