SYNOPSIS

#include <numbers.h>

Inherited by ost::Datetime.

Public Member Functions

Time (time_t tm)

Time (tm *dt)

Time (char *str, size_t size=0)

Time (int hour, int minute, int second)

Time ()

virtual ~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 ()

String operator() () const

Time & operator++ ()

Time & operator-- ()

Time & operator+= (const int val)

Time & operator-= (const int val)

int operator== (const Time &time)

int operator!= (const Time &time)

int operator< (const Time &time)

int operator<= (const Time &time)

int operator> (const Time &time)

int operator>= (const Time &time)

bool operator! () const

Protected Member Functions

void toSeconds (int hour, int minute, int second)

void fromSeconds (char *buf) const

virtual void update (void)

Protected Attributes

long seconds

Friends

Time operator+ (const Time &time1, const Time &time2)

Time operator- (const Time &time1, const Time &time2)

Time operator+ (const Time &time, const int val)

Time operator- (const Time &time, const int val)

Time operator+ (const int val, const Time &time)

Time operator- (const int val, const Time &time)

Detailed Description

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

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

Author:

Marcelo Dalmas [email protected] Integer based time class.

Constructor & Destructor Documentation

ost::Time::Time (time_ttm)

ost::Time::Time (tm *dt)

ost::Time::Time (char *str, size_tsize = \fC0\fP)

ost::Time::Time (inthour, intminute, intsecond)

ost::Time::Time ()

virtual ost::Time::~Time ()\fC [virtual]\fP

Member Function Documentation

void ost::Time::fromSeconds (char *buf) const\fC [protected]\fP

int ost::Time::getHour (void) const

int ost::Time::getMinute (void) const

int ost::Time::getSecond (void) const

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

time_t ost::Time::getTime (void) const

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

long ost::Time::getValue (void) const

bool ost::Time::isValid (void) const

ost::Time::operator long ()\fC [inline]\fP

bool ost::Time::operator! (void) const\fC [inline]\fP

int \fBost::Time::operator!\fP= (const \fBTime\fP &time)

\fBString\fP ost::Time::operator() () const

\fBTime\fP& ost::Time::operator++ ()

\fBTime\fP& ost::Time::operator+= (const intval)

\fBTime\fP& ost::Time::operator-- ()

\fBTime\fP& ost::Time::operator-= (const intval)

int ost::Time::operator< (const \fBTime\fP &time)

int ost::Time::operator<= (const \fBTime\fP &time)

int ost::Time::operator== (const \fBTime\fP &time)

int ost::Time::operator> (const \fBTime\fP &time)

int ost::Time::operator>= (const \fBTime\fP &time)

void ost::Time::setTime (char *str, size_tsize = \fC0\fP)

void ost::Time::toSeconds (inthour, intminute, intsecond)\fC [protected]\fP

virtual void ost::Time::update (void)\fC [protected]\fP, \fC [virtual]\fP

Friends And Related Function Documentation

\fBTime\fP operator+ (const \fBTime\fP &time1, const \fBTime\fP &time2)\fC [friend]\fP

\fBTime\fP operator+ (const \fBTime\fP &time, const intval)\fC [friend]\fP

\fBTime\fP operator+ (const intval, const \fBTime\fP &time)\fC [friend]\fP

\fBTime\fP operator- (const \fBTime\fP &time1, const \fBTime\fP &time2)\fC [friend]\fP

\fBTime\fP operator- (const \fBTime\fP &time, const intval)\fC [friend]\fP

\fBTime\fP operator- (const intval, const \fBTime\fP &time)\fC [friend]\fP

Member Data Documentation

long ost::Time::seconds\fC [protected]\fP

Author

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