25#if defined(WIN32) || defined(__WIN32) || defined(__WIN32__)
50 Date(
const std::string &
s,
const std::string &
fmt=
"%Y-%m-%d");
52 Date(
const unsigned int &
mon,
const unsigned int &
day,
const unsigned int &
year) {
107 inline std::string
format(
const char *
fmt =
"%Y-%m-%d")
const {
113 return std::string(
"");
115 return std::string(
txt);
144 return static_cast<double>(
from.getDate());
friend Date operator+(const Date &date, int offset)
friend bool operator==(const Date &date1, const Date &date2)
friend bool operator>=(const Date &date1, const Date &date2)
Date(const unsigned int &mon, const unsigned int &day, const unsigned int &year)
friend bool operator<=(const Date &date1, const Date &date2)
friend std::ostream & operator<<(std::ostream &os, const Date d)
friend bool operator<(const Date &date1, const Date &date2)
friend bool operator!=(const Date &date1, const Date &date2)
double getDate(void) const
friend double operator-(const Date &date1, const Date &date2)
friend bool operator>(const Date &date1, const Date &date2)
std::string format(const char *fmt="%Y-%m-%d") const
static unsigned int baseYear()
SEXP new_posixt_object(double d)
T as(SEXP x, ::Rcpp::traits::r_type_primitive_tag)
Rcpp::Date caster< double, Rcpp::Date >(double from)
double caster< Rcpp::Date, double >(Rcpp::Date from)
SEXP new_date_object(double d)
bool is_na< REALSXP >(double x)
std::ostream & operator<<(std::ostream &os, const Date d)
bool operator>=(const Date &d1, const Date &d2)
bool operator!=(const Date &d1, const Date &d2)
double operator-(const Date &d1, const Date &d2)
bool operator>(const Date &d1, const Date &d2)
attribute_hidden struct tm * gmtime_(const time_t *const x)
SEXP wrap_extra_steps< Rcpp::Date >(SEXP)
attribute_hidden double mktime00(struct tm &tm)
bool operator<(const Date &d1, const Date &d2)
bool operator==(const Date &d1, const Date &d2)
bool operator<=(const Date &d1, const Date &d2)
SEXP wrap< Rcpp::Date >(const Rcpp::Date &date)
Date operator+(const Date &date, int offset)