22#ifndef Rcpp__newDatetimeVector_h
23#define Rcpp__newDatetimeVector_h
31 template <
int RTYPE,
bool NA,
typename VEC>
48 size_t n = this->
size();
49 std::vector<Datetime> v(n);
50 for (
size_t i=0; i<n; i++)
58 this->
attr(
"tzone") = rhs.
attr(
"tzone");
83 for (
size_t i=0; i<n; i++) {
85 if ((i+1) % 4 == 0)
os <<
"\n";
AttributeProxy attr(const std::string &name)
std::string format(const char *fmt="%Y-%m-%d %H:%M:%S") const
Vector & operator=(const Vector &rhs)
newDatetimeVector(SEXP vec, const char *tz="")
newDatetimeVector(int n, const char *tz="")
newDatetimeVector(const VectorBase< RTYPE, NA, VEC > &other, const char *tz="")
newDatetimeVector & operator=(const newDatetimeVector &rhs)
std::vector< Datetime > getDatetimes() const
friend std::ostream & operator<<(std::ostream &s, const newDatetimeVector d)
void setClass(const char *tz)
std::ostream & operator<<(std::ostream &os, const Date d)