|
Rcpp Version 0.9.10
|
#include <Date.h>
Public Member Functions | |
| Date () | |
| Date (SEXP s) | |
| Date (const int &dt) | |
| Date (const std::string &s, const std::string &fmt="%Y-%m-%d") | |
| Date (const unsigned int &m, const unsigned int &d, const unsigned int &y) | |
| Date (const Date ©) | |
| ~Date () | |
| int | getDate (void) const |
| int | getDay () const |
| int | getMonth () const |
| int | getYear () const |
| int | getWeekday () const |
| int | getYearday () const |
| Date & | operator= (const Date &newdate) |
Static Public Attributes | |
| static const unsigned int | QLtoJan1970Offset = 25569 |
| static const unsigned int | baseYear = 1900 |
Private Member Functions | |
| void | update_tm () |
| double | mktime00 (struct tm &tm) const |
Private Attributes | |
| int | m_d |
| struct tm | m_tm |
Friends | |
| Date | operator+ (const Date &date, int offset) |
| int | operator- (const Date &date1, const Date &date2) |
| bool | operator< (const Date &date1, const Date &date2) |
| bool | operator> (const Date &date1, const Date &date2) |
| bool | operator== (const Date &date1, const Date &date2) |
| bool | operator>= (const Date &date1, const Date &date2) |
| bool | operator<= (const Date &date1, const Date &date2) |
| bool | operator!= (const Date &date1, const Date &date2) |
| Rcpp::Date::Date | ( | ) |
Definition at line 40 of file Date.cpp.
References m_d, and update_tm().

| Rcpp::Date::Date | ( | SEXP | s | ) |
Definition at line 45 of file Date.cpp.
References m_d, and update_tm().

| Rcpp::Date::Date | ( | const int & | dt | ) |
Definition at line 50 of file Date.cpp.
References m_d, and update_tm().

| Rcpp::Date::Date | ( | const std::string & | s, |
| const std::string & | fmt = "%Y-%m-%d" |
||
| ) |
Definition at line 55 of file Date.cpp.
References m_d, and update_tm().

| Rcpp::Date::Date | ( | const unsigned int & | m, |
| const unsigned int & | d, | ||
| const unsigned int & | y | ||
| ) |
| Rcpp::Date::Date | ( | const Date & | copy | ) |
| int Rcpp::Date::getDate | ( | void | ) | const [inline] |
| int Rcpp::Date::getWeekday | ( | ) | const [inline] |
| int Rcpp::Date::getYearday | ( | ) | const [inline] |
| double Rcpp::Date::mktime00 | ( | struct tm & | tm | ) | const [private] |
| void Rcpp::Date::update_tm | ( | ) | [private] |
const unsigned int Rcpp::Date::baseYear = 1900 [static] |
Definition at line 52 of file Date.h.
Referenced by Date(), and mktime00().
int Rcpp::Date::m_d [private] |
Definition at line 67 of file Date.h.
Referenced by Date(), getDate(), Rcpp::operator!=(), Rcpp::operator+(), Rcpp::operator-(), Rcpp::operator<(), Rcpp::operator<=(), operator=(), Rcpp::operator==(), Rcpp::operator>(), Rcpp::operator>=(), and update_tm().
struct tm Rcpp::Date::m_tm [private] |
Definition at line 68 of file Date.h.
Referenced by Date(), getDay(), getMonth(), getWeekday(), getYear(), getYearday(), Rcpp::operator+(), operator=(), and update_tm().
const unsigned int Rcpp::Date::QLtoJan1970Offset = 25569 [static] |