DOKK / manpages / debian 10 / libcommoncpp2-doc / ost_Time.3.en
ost::Time(3) Library Functions Manual ost::Time(3)

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

#include <numbers.h>

Inherited by ost::Datetime.


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


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


long seconds


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)

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 mad@brasmap.com.br Integer based time class.

String ost::Time::operator() () const

Time& ost::Time::operator++ ()

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

Time& ost::Time::operator-- ()

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

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

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

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

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

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

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

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

Wed Oct 31 2018 GNU CommonC++