|
Rcpp Version 0.9.10
|
#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") | |
| Datetime (const Datetime ©) | |
| ~Datetime () | |
| 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 |
| Datetime & | operator= (const Datetime &newdt) |
Private Member Functions | |
| void | update_tm () |
Private Attributes | |
| double | m_dt |
| struct tm | m_tm |
| unsigned int | m_us |
Friends | |
| Datetime | operator+ (const Datetime &dt, double 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) |
Definition at line 29 of file Datetime.h.
| Rcpp::Datetime::Datetime | ( | ) |
Definition at line 32 of file Datetime.cpp.
References m_dt, and update_tm().

| Rcpp::Datetime::Datetime | ( | SEXP | s | ) |
Definition at line 37 of file Datetime.cpp.
References m_dt, and update_tm().

| Rcpp::Datetime::Datetime | ( | const double & | dt | ) |
Definition at line 42 of file Datetime.cpp.
References m_dt, and update_tm().

| Rcpp::Datetime::Datetime | ( | const std::string & | s, |
| const std::string & | fmt = "%Y-%m-%d %H:%M:%OS" |
||
| ) |
Definition at line 47 of file Datetime.cpp.
References m_dt, and update_tm().

| Rcpp::Datetime::Datetime | ( | const Datetime & | copy | ) |
Definition at line 54 of file Datetime.cpp.
| Rcpp::Datetime::~Datetime | ( | ) | [inline] |
Definition at line 36 of file Datetime.h.
| int Rcpp::Datetime::getDay | ( | ) | const [inline] |
Definition at line 44 of file Datetime.h.
References m_tm.
| double Rcpp::Datetime::getFractionalTimestamp | ( | void | ) | const [inline] |
| int Rcpp::Datetime::getHours | ( | ) | const [inline] |
Definition at line 43 of file Datetime.h.
References m_tm.
| int Rcpp::Datetime::getMicroSeconds | ( | ) | const [inline] |
Definition at line 40 of file Datetime.h.
References m_us.
| int Rcpp::Datetime::getMinutes | ( | ) | const [inline] |
Definition at line 42 of file Datetime.h.
References m_tm.
| int Rcpp::Datetime::getMonth | ( | ) | const [inline] |
Definition at line 45 of file Datetime.h.
References m_tm.
| int Rcpp::Datetime::getSeconds | ( | ) | const [inline] |
Definition at line 41 of file Datetime.h.
References m_tm.
| int Rcpp::Datetime::getWeekday | ( | ) | const [inline] |
Definition at line 47 of file Datetime.h.
References m_tm.
| int Rcpp::Datetime::getYear | ( | ) | const [inline] |
Definition at line 46 of file Datetime.h.
References m_tm.
| int Rcpp::Datetime::getYearday | ( | ) | const [inline] |
Definition at line 48 of file Datetime.h.
References m_tm.
Definition at line 60 of file Datetime.cpp.
| void Rcpp::Datetime::update_tm | ( | ) | [private] |
Definition at line 69 of file Datetime.cpp.
References m_dt, m_tm, and m_us.
Referenced by Datetime().
Definition at line 91 of file Datetime.cpp.
Definition at line 76 of file Datetime.cpp.
Definition at line 85 of file Datetime.cpp.
Definition at line 86 of file Datetime.cpp.
Definition at line 90 of file Datetime.cpp.
Definition at line 88 of file Datetime.cpp.
Definition at line 87 of file Datetime.cpp.
Definition at line 89 of file Datetime.cpp.
double Rcpp::Datetime::m_dt [private] |
Definition at line 63 of file Datetime.h.
Referenced by Datetime(), getFractionalTimestamp(), Rcpp::operator!=(), Rcpp::operator+(), Rcpp::operator-(), Rcpp::operator<(), Rcpp::operator<=(), operator=(), Rcpp::operator==(), Rcpp::operator>(), Rcpp::operator>=(), and update_tm().
struct tm Rcpp::Datetime::m_tm [private] |
Definition at line 64 of file Datetime.h.
Referenced by Datetime(), getDay(), getHours(), getMinutes(), getMonth(), getSeconds(), getWeekday(), getYear(), getYearday(), Rcpp::operator+(), operator=(), and update_tm().
unsigned int Rcpp::Datetime::m_us [private] |
Definition at line 65 of file Datetime.h.
Referenced by Datetime(), getMicroSeconds(), Rcpp::operator+(), operator=(), and update_tm().