Public Types | Public Member Functions | Static Public Member Functions

AB::Time Class Reference

#include <time.hpp>

Public Types

typedef GWEN_TIME wrapped_type

Public Member Functions

 Time (int year, int month, int day, int hour, int min, int sec, int inUtc)
 ~Time ()
 Time (const wrapped_type *other)
 Time (const Time &other)
Timeoperator= (const Time &other)
 operator const wrapped_type * () const
 operator wrapped_type * ()
const wrapped_typeptr () const
wrapped_typeptr ()
uint32_t seconds () const
double milliseconds () const
struct tm toTm () const
time_t toTime_t () const
int getBrokenDownDate (int &day, int &month, int &year)
int getBrokenDownUtcDate (int &day, int &month, int &year)

Static Public Member Functions

static Time currentTime ()

Detailed Description

A wrapper class around the GWEN_TIME type

Definition at line 24 of file time.hpp.


Member Typedef Documentation

typedef GWEN_TIME AB::Time::wrapped_type

Definition at line 27 of file time.hpp.


Constructor & Destructor Documentation

AB::Time::Time ( int  year,
int  month,
int  day,
int  hour,
int  min,
int  sec,
int  inUtc 
) [inline]

Definition at line 32 of file time.hpp.

AB::Time::~Time (  )  [inline]

Definition at line 42 of file time.hpp.

AB::Time::Time ( const wrapped_type other  )  [inline]

Definition at line 42 of file time.hpp.

AB::Time::Time ( const Time other  )  [inline]

Definition at line 42 of file time.hpp.


Member Function Documentation

static Time AB::Time::currentTime (  )  [inline, static]

Definition at line 64 of file time.hpp.

int AB::Time::getBrokenDownDate ( int &  day,
int &  month,
int &  year 
) [inline]

Returns the broken down date as local date.

Definition at line 52 of file time.hpp.

int AB::Time::getBrokenDownUtcDate ( int &  day,
int &  month,
int &  year 
) [inline]

Returns the broken down time as UTC date (Greenwhich Mean time).

Definition at line 59 of file time.hpp.

double AB::Time::milliseconds (  )  const [inline]

Definition at line 45 of file time.hpp.

AB::Time::operator const wrapped_type * (  )  const [inline]

Definition at line 42 of file time.hpp.

AB::Time::operator wrapped_type * (  )  [inline]

Definition at line 42 of file time.hpp.

Time& AB::Time::operator= ( const Time other  )  [inline]

Definition at line 42 of file time.hpp.

const wrapped_type* AB::Time::ptr (  )  const [inline]

Definition at line 42 of file time.hpp.

wrapped_type* AB::Time::ptr (  )  [inline]

Definition at line 42 of file time.hpp.

uint32_t AB::Time::seconds (  )  const [inline]

Definition at line 44 of file time.hpp.

time_t AB::Time::toTime_t (  )  const [inline]

Definition at line 47 of file time.hpp.

struct tm AB::Time::toTm (  )  const [inline, read]

Definition at line 46 of file time.hpp.


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