RcppDatetime Class Reference

#include <RcppDatetime.h>

List of all members.

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)

Detailed Description

Definition at line 27 of file RcppDatetime.h.


Constructor & Destructor Documentation

RcppDatetime::RcppDatetime ( void   ) 

Definition at line 24 of file RcppDatetime.cpp.

RcppDatetime::RcppDatetime ( const double  d  ) 

Definition at line 29 of file RcppDatetime.cpp.


Member Function Documentation

int RcppDatetime::getDay ( void   )  [inline]

Definition at line 45 of file RcppDatetime.h.

References m_parsed, m_tm, and parseTime().

Here is the call graph for this function:

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().

Here is the call graph for this function:

int RcppDatetime::getMicroSec ( void   )  [inline]

Definition at line 50 of file RcppDatetime.h.

References m_parsed, m_us, and parseTime().

Here is the call graph for this function:

int RcppDatetime::getMinute ( void   )  [inline]

Definition at line 48 of file RcppDatetime.h.

References m_parsed, m_tm, and parseTime().

Here is the call graph for this function:

int RcppDatetime::getMonth ( void   )  [inline]

Definition at line 44 of file RcppDatetime.h.

References m_parsed, m_tm, and parseTime().

Here is the call graph for this function:

int RcppDatetime::getSecond ( void   )  [inline]

Definition at line 49 of file RcppDatetime.h.

References m_parsed, m_tm, and parseTime().

Here is the call graph for this function:

int RcppDatetime::getWeekday ( void   )  [inline]

Definition at line 46 of file RcppDatetime.h.

References m_parsed, m_tm, and parseTime().

Here is the call graph for this function:

int RcppDatetime::getYear ( void   )  [inline]

Definition at line 43 of file RcppDatetime.h.

References m_parsed, m_tm, and parseTime().

Here is the call graph for this function:

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<<().


Friends And Related Function Documentation

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.


Member Data Documentation

double RcppDatetime::m_d [private]
bool RcppDatetime::m_parsed [private]
struct tm RcppDatetime::m_tm [read, private]
int RcppDatetime::m_us [private]

Definition at line 31 of file RcppDatetime.h.

Referenced by getMicroSec(), operator<<(), and parseTime().


The documentation for this class was generated from the following files:

Generated on Sat Dec 19 14:01:36 2009 for Rcpp by  doxygen 1.6.1