|
Rcpp Version 1.1.2
|
#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().
Referenced by operator!=, operator+, operator-, operator<, operator<<, operator<=, operator==, operator>, and operator>=.

|
inline |
Definition at line 25 of file Date.h.
References Rcpp::as(), m_d, and update_tm().

|
inline |
Definition at line 40 of file Date.h.
References m_d, and update_tm().

|
inline |
Definition at line 46 of file Date.h.
References m_d, and update_tm().

|
inline |
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 baseYear(), m_d, m_tm, and Rcpp::mktime00().

|
inlinestatic |
|
inline |
Definition at line 107 of file Date.h.
References baseYear(), m_tm, and Rcpp::tm.
Referenced by operator<<, and Rcpp::newDateVector::operator<<.

|
inline |
Definition at line 70 of file Date.h.
References m_d.
Referenced by Rcpp::internal::caster< Rcpp::Date, double >(), and Rcpp::wrap().
|
inline |
Definition at line 99 of file Date.h.
References Rcpp::traits::is_na< REALSXP >(), and m_d.

|
inlineprivate |
|
friend |
|
private |
Definition at line 122 of file Date.h.
Referenced by Date(), Date(), Date(), Date(), Date(), Date(), getDate(), is_na(), operator double(), operator!=, operator+, operator-, operator<, operator<=, operator==, operator>, operator>=, and update_tm().
|
private |
Definition at line 123 of file Date.h.
Referenced by Date(), format(), getDay(), getMonth(), getWeekday(), getYear(), getYearday(), operator+, and update_tm().