Protium
Math and Design Features
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Pages
Protium::Time::TimeDate Class Reference

#include <Time.h>

Inheritance diagram for Protium::Time::TimeDate:

Public Member Functions

 TimeDate (const int &sec=0, const int &min=0, const int &hour=0, const int &day=0, const int &month=0, const int &year=0, const int &weekday=0, const bool &dst=false)
 
 TimeDate (const TimeDate &other)
 
 TimeDate (const TimePrimitive &other)
 
std::string AsFormat (const std::string &frmt="%d/%m/%Y %H:%M:%S")
 
time_t GetTimeGM () const
 
time_t GetTimeLocal () const
 
- Public Member Functions inherited from Protium::Time::TimePrimitive
 TimePrimitive (const time_t &t)
 
 TimePrimitive (const TimePrimitive &t)
 
virtual ~TimePrimitive ()
 
time_t GetTime () const
 
TimePrimitiveoperator-= (const TimePrimitive &other)
 
TimePrimitiveoperator= (const TimePrimitive &other)
 
void SetTime (const time_t &t)
 

Static Public Member Functions

static TimeDate FromFormat (const std::string &t, const std::string &fmt="%d/%m/%Y %H:%M:%S")
 
- Static Public Member Functions inherited from Protium::Time::TimePrimitive
static TimePrimitive Now ()
 

Private Attributes

tm fTM
 

Additional Inherited Members

- Protected Attributes inherited from Protium::Time::TimePrimitive
time_t fTime
 Data. More...
 

Detailed Description

Definition at line 36 of file Time.h.

Constructor & Destructor Documentation

Protium::Time::TimeDate::TimeDate ( const int &  sec = 0,
const int &  min = 0,
const int &  hour = 0,
const int &  day = 0,
const int &  month = 0,
const int &  year = 0,
const int &  weekday = 0,
const bool &  dst = false 
)
inline

Definition at line 39 of file Time.h.

Protium::Time::TimeDate::TimeDate ( const TimeDate other)
inline

Definition at line 57 of file Time.h.

Protium::Time::TimeDate::TimeDate ( const TimePrimitive other)
inline

Definition at line 62 of file Time.h.

Member Function Documentation

std::string Protium::Time::TimeDate::AsFormat ( const std::string &  frmt = "%d/%m/%Y %H:%M:%S")
inline

Definition at line 70 of file Time.h.

static TimeDate Protium::Time::TimeDate::FromFormat ( const std::string &  t,
const std::string &  fmt = "%d/%m/%Y %H:%M:%S" 
)
inlinestatic

Definition at line 79 of file Time.h.

time_t Protium::Time::TimeDate::GetTimeGM ( ) const
inline

Definition at line 68 of file Time.h.

time_t Protium::Time::TimeDate::GetTimeLocal ( ) const
inline

Definition at line 67 of file Time.h.

Member Data Documentation

tm Protium::Time::TimeDate::fTM
private

Definition at line 37 of file Time.h.