#include <RcppDatetime.h>
Public Member Functions | |
| RcppDatetime (void) | |
| RcppDatetime (const double d) | |
| double | getFractionalTimestamp (void) const |
| int | getYear (void) |
| int | getMonth (void) |
| int | getDay (void) |
| int | getWeekday (void) |
| int | getHour (void) |
| int | getMinute (void) |
| int | getSecond (void) |
| int | getMicroSec (void) |
Private Member Functions | |
| void | parseTime () |
Private Attributes | |
| double | m_d |
| bool | m_parsed |
| int | m_us |
| struct tm | m_tm |
Friends | |
| class | ColDatum |
| double | operator- (const RcppDatetime &dt1, const RcppDatetime &dt2) |
| bool | operator< (const RcppDatetime &dt1, const RcppDatetime &dt2) |
| bool | operator<= (const RcppDatetime &dt1, const RcppDatetime &dt2) |
| bool | operator> (const RcppDatetime &dt1, const RcppDatetime &dt2) |
| bool | operator>= (const RcppDatetime &dt1, const RcppDatetime &dt2) |
| bool | operator== (const RcppDatetime &dt1, const RcppDatetime &dt2) |
| std::ostream & | operator<< (std::ostream &os, const RcppDatetime &datetime) |
| RcppDatetime | operator+ (const RcppDatetime &date, double offset) |
Definition at line 27 of file RcppDatetime.h.
| RcppDatetime::RcppDatetime | ( | void | ) |
Definition at line 24 of file RcppDatetime.cpp.
| RcppDatetime::RcppDatetime | ( | const double | d | ) |
Definition at line 29 of file RcppDatetime.cpp.
| int RcppDatetime::getDay | ( | void | ) | [inline] |
Definition at line 45 of file RcppDatetime.h.
References m_parsed, m_tm, and parseTime().

| double RcppDatetime::getFractionalTimestamp | ( | void | ) | const [inline] |
Definition at line 42 of file RcppDatetime.h.
References m_d.
Referenced by RcppResultSet::add(), and RcppFunction::appendToRList().
| int RcppDatetime::getHour | ( | void | ) | [inline] |
Definition at line 47 of file RcppDatetime.h.
References m_parsed, m_tm, and parseTime().

| int RcppDatetime::getMicroSec | ( | void | ) | [inline] |
Definition at line 50 of file RcppDatetime.h.
References m_parsed, m_us, and parseTime().

| int RcppDatetime::getMinute | ( | void | ) | [inline] |
Definition at line 48 of file RcppDatetime.h.
References m_parsed, m_tm, and parseTime().

| int RcppDatetime::getMonth | ( | void | ) | [inline] |
Definition at line 44 of file RcppDatetime.h.
References m_parsed, m_tm, and parseTime().

| int RcppDatetime::getSecond | ( | void | ) | [inline] |
Definition at line 49 of file RcppDatetime.h.
References m_parsed, m_tm, and parseTime().

| int RcppDatetime::getWeekday | ( | void | ) | [inline] |
Definition at line 46 of file RcppDatetime.h.
References m_parsed, m_tm, and parseTime().

| int RcppDatetime::getYear | ( | void | ) | [inline] |
Definition at line 43 of file RcppDatetime.h.
References m_parsed, m_tm, and parseTime().

| void RcppDatetime::parseTime | ( | ) | [private] |
Definition at line 34 of file RcppDatetime.cpp.
References m_d, m_parsed, m_tm, and m_us.
Referenced by getDay(), getHour(), getMicroSec(), getMinute(), getMonth(), getSecond(), getWeekday(), getYear(), and operator<<().
friend class ColDatum [friend] |
Definition at line 36 of file RcppDatetime.h.
| RcppDatetime operator+ | ( | const RcppDatetime & | date, | |
| double | offset | |||
| ) | [friend] |
| double operator- | ( | const RcppDatetime & | dt1, | |
| const RcppDatetime & | dt2 | |||
| ) | [friend] |
Definition at line 52 of file RcppDatetime.h.
| bool operator< | ( | const RcppDatetime & | dt1, | |
| const RcppDatetime & | dt2 | |||
| ) | [friend] |
Definition at line 53 of file RcppDatetime.h.
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const RcppDatetime & | datetime | |||
| ) | [friend] |
| bool operator<= | ( | const RcppDatetime & | dt1, | |
| const RcppDatetime & | dt2 | |||
| ) | [friend] |
Definition at line 54 of file RcppDatetime.h.
| bool operator== | ( | const RcppDatetime & | dt1, | |
| const RcppDatetime & | dt2 | |||
| ) | [friend] |
Definition at line 57 of file RcppDatetime.h.
| bool operator> | ( | const RcppDatetime & | dt1, | |
| const RcppDatetime & | dt2 | |||
| ) | [friend] |
Definition at line 55 of file RcppDatetime.h.
| bool operator>= | ( | const RcppDatetime & | dt1, | |
| const RcppDatetime & | dt2 | |||
| ) | [friend] |
Definition at line 56 of file RcppDatetime.h.
double RcppDatetime::m_d [private] |
Definition at line 29 of file RcppDatetime.h.
Referenced by getFractionalTimestamp(), operator+(), parseTime(), and ColDatum::setDatetimeValue().
bool RcppDatetime::m_parsed [private] |
Definition at line 30 of file RcppDatetime.h.
Referenced by getDay(), getHour(), getMicroSec(), getMinute(), getMonth(), getSecond(), getWeekday(), getYear(), operator+(), and parseTime().
struct tm RcppDatetime::m_tm [read, private] |
Definition at line 32 of file RcppDatetime.h.
Referenced by getDay(), getHour(), getMinute(), getMonth(), getSecond(), getWeekday(), getYear(), operator<<(), and parseTime().
int RcppDatetime::m_us [private] |
Definition at line 31 of file RcppDatetime.h.
Referenced by getMicroSec(), operator<<(), and parseTime().
1.6.1