Reference

Time(3cc)

The Time class uses a integer representation of the current time. Integer based time class.

NAME

Time - The Time class uses a integer representation of the current time. Integer based time class.

SYNOPSIS

#include <numbers.h>

Inherited by Datetime.

Public Methods

Time (time_t tm)
Time (tm *dt)
Time (char *str, size_t size=0)
Time (int hour, int minute, int second)
Time ()
long getValue (void) const
int getHour (void) const
int getMinute (void) const
int getSecond (void) const
char * getTime (char *buffer) const
time_t getTime (void) const
tm * getTime (tm *buf) const
void setTime (char *str, size_t size=0)
bool isValid (void) const
operator long ()
std::string operator() () const
Time & operator++ ()
Time & operator-- ()
Time & operator+= (int val)
Time & operator-= (int val)
int operator== (Time &time)
int operator!= (Time &time)
int operator< (Time &time)
int operator<= (Time &time)
int operator> (Time &time)
int operator>= (Time &time)
bool operator! ()

Protected Methods

void toSeconds (int hour, int minute, int second)
void fromSeconds (char *buf) const
virtual void Update (void)

Protected Attributes

long seconds

Friends

Time operator+ (Time &time1, Time &time2)
Time operator- (Time &time1, Time &time2)
Time operator+ (Time &time, int val)
Time operator- (Time &time, int val)
Time operator+ (int val, Time &time)
Time operator- (int val, Time &time)

DETAILED DESCRIPTION

The Time class uses a integer representation of the current time. Integer based time class.

This is then manipulated in several forms and may be exported as needed.

Author: Marcelo Dalmas <[email protected]>

CONSTRUCTOR & DESTRUCTOR DOCUMENTATION

Time::Time (time_t tm)

Time::Time (tm * dt)

Time::Time (char * str, size_t size = 0)

Time::Time (int hour, int minute, int second)

Time::Time ()

MEMBER FUNCTION DOCUMENTATION

void Time::fromSeconds (char * buf) const [protected]

int Time::getHour (void) const

int Time::getMinute (void) const

int Time::getSecond (void) const

tm* Time::getTime (tm * buf) const

time_t Time::getTime (void) const

char* Time::getTime (char * buffer) const

long Time::getValue (void) const

bool Time::isValid (void) const

Reimplemented in Datetime.

Time::operator long () [inline]

bool Time::operator! (void) [inline]

Reimplemented in Datetime.

int Time::operator!= (Time & time)

std::string Time::operator() ()

Time& Time::operator++ ()

Time& Time::operator+= (int val)

Time& Time::operator-- ()

Time& Time::operator-= (int val)

int Time::operator< (Time & time)

int Time::operator<= (Time & time)

int Time::operator== (Time & time)

int Time::operator> (Time & time)

int Time::operator>= (Time & time)

void Time::setTime (char * str, size_t size = 0)

void Time::toSeconds (int hour, int minute, int second) [protected]

virtual void Time::Update (void) [inline, protected, virtual]

FRIENDS AND RELATED FUNCTION DOCUMENTATION

Time operator+ (int val, Time & time) [friend]

Time operator+ (Time & time, int val) [friend]

Time operator+ (Time & time1, Time & time2) [friend]

Time operator- (int val, Time & time) [friend]

Time operator- (Time & time, int val) [friend]

Time operator- (Time & time1, Time & time2) [friend]

MEMBER DATA DOCUMENTATION

long Time::seconds [protected]

AUTHOR

Generated automatically by Doxygen for CommonC++ from the source code.