Rcpp Version 1.0.14
|
#include <Date.h>
Public Member Functions | |
Date () | |
Date (SEXP s) | |
Date (const int &dt) | |
Date (const double &dt) | |
Date (const std::string &s, const std::string &fmt="%Y-%m-%d") | |
Date (const unsigned int &mon, const unsigned int &day, const unsigned int &year) | |
double | getDate (void) const |
int | getDay () const |
int | getMonth () const |
int | getYear () const |
int | getWeekday () const |
int | getYearday () const |
int | is_na () const |
operator double () const | |
std::string | format (const char *fmt="%Y-%m-%d") const |
Static Public Member Functions | |
static unsigned int | baseYear () |
Private Member Functions | |
void | update_tm () |
Private Attributes | |
double | m_d |
struct tm | m_tm |
Friends | |
Date | operator+ (const Date &date, int offset) |
double | 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) |
std::ostream & | operator<< (std::ostream &os, const Date d) |
|
inline |
Definition at line 33 of file Date.h.
References m_d, and update_tm().
|
inline |
Definition at line 25 of file Date.h.
References Rcpp::as(), m_d, and update_tm().
Definition at line 40 of file Date.h.
References m_d, and update_tm().
Definition at line 46 of file Date.h.
References m_d, and update_tm().
Definition at line 30 of file Date.h.
References Rcpp::as(), m_d, and update_tm().
|
inline |
Definition at line 52 of file Date.h.
References Rcpp::as(), baseYear(), m_d, m_tm, and Rcpp::mktime00().
Definition at line 107 of file Date.h.
References Rcpp::as(), baseYear(), m_tm, and Rcpp::tm.
|
inline |
Definition at line 99 of file Date.h.
References Rcpp::traits::is_na< REALSXP >(), and m_d.
|
inlineprivate |
|
private |
Definition at line 123 of file Date.h.
Referenced by Date(), format(), getDay(), getMonth(), getWeekday(), getYear(), getYearday(), and update_tm().