Rcpp Version 1.0.9
|
#include <Datetime.h>
Public Member Functions | |
Datetime () | |
Datetime (SEXP s) | |
Datetime (const double &dt) | |
Datetime (const std::string &s, const std::string &fmt="%Y-%m-%d %H:%M:%OS") | |
double | getFractionalTimestamp (void) const |
int | getMicroSeconds () const |
int | getSeconds () const |
int | getMinutes () const |
int | getHours () 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 %H:%M:%S") const |
Private Member Functions | |
void | update_tm () |
Static Private Member Functions | |
static unsigned int | baseYear () |
Private Attributes | |
double | m_dt |
struct tm | m_tm |
unsigned int | m_us |
Friends | |
Datetime | operator+ (const Datetime &dt, double offset) |
Datetime | operator+ (const Datetime &dt, int offset) |
double | operator- (const Datetime &dt1, const Datetime &dt2) |
bool | operator< (const Datetime &dt1, const Datetime &dt2) |
bool | operator> (const Datetime &dt1, const Datetime &dt2) |
bool | operator== (const Datetime &dt1, const Datetime &dt2) |
bool | operator>= (const Datetime &dt1, const Datetime &dt2) |
bool | operator<= (const Datetime &dt1, const Datetime &dt2) |
bool | operator!= (const Datetime &dt1, const Datetime &dt2) |
std::ostream & | operator<< (std::ostream &s, const Datetime d) |
Definition at line 33 of file Datetime.h.
|
inline |
Definition at line 35 of file Datetime.h.
References m_dt, and update_tm().
|
inline |
Definition at line 25 of file Datetime.h.
References m_dt, and update_tm().
|
inline |
Definition at line 42 of file Datetime.h.
References R::dt(), m_dt, and update_tm().
|
inline |
Definition at line 30 of file Datetime.h.
References m_dt, and update_tm().
|
inlinestaticprivate |
Definition at line 116 of file Datetime.h.
|
inline |
Definition at line 75 of file Datetime.h.
|
inline |
Definition at line 54 of file Datetime.h.
References m_tm.
|
inline |
Definition at line 48 of file Datetime.h.
References m_dt.
Referenced by Rcpp::internal::caster< Rcpp::Datetime, double >(), and Rcpp::wrap< Datetime >().
|
inline |
Definition at line 53 of file Datetime.h.
References m_tm.
|
inline |
Definition at line 50 of file Datetime.h.
References m_us.
|
inline |
Definition at line 52 of file Datetime.h.
References m_tm.
|
inline |
Definition at line 55 of file Datetime.h.
References m_tm.
|
inline |
Definition at line 51 of file Datetime.h.
References m_tm.
|
inline |
Definition at line 57 of file Datetime.h.
References m_tm.
|
inline |
Definition at line 56 of file Datetime.h.
References m_tm.
|
inline |
Definition at line 58 of file Datetime.h.
References m_tm.
|
inline |
Definition at line 71 of file Datetime.h.
References Rcpp::traits::is_na< REALSXP >(), and m_dt.
|
inline |
Definition at line 73 of file Datetime.h.
References m_dt.
|
inlineprivate |
Definition at line 100 of file Datetime.h.
References R::dt(), Rcpp::gmtime_(), m_dt, m_tm, and m_us.
Referenced by Datetime().
Definition at line 164 of file Datetime.h.
Definition at line 138 of file Datetime.h.
Definition at line 148 of file Datetime.h.
Definition at line 158 of file Datetime.h.
Definition at line 159 of file Datetime.h.
|
friend |
Definition at line 166 of file Datetime.h.
Definition at line 163 of file Datetime.h.
Definition at line 161 of file Datetime.h.
Definition at line 160 of file Datetime.h.
Definition at line 162 of file Datetime.h.
|
private |
Definition at line 95 of file Datetime.h.
Referenced by Datetime(), format(), getFractionalTimestamp(), is_na(), operator double(), and update_tm().
|
private |
Definition at line 95 of file Datetime.h.
Referenced by getDay(), getHours(), getMinutes(), getMonth(), getSeconds(), getWeekday(), getYear(), getYearday(), and update_tm().
|
private |
Definition at line 97 of file Datetime.h.
Referenced by format(), getMicroSeconds(), and update_tm().