The Time class uses a integer representation of the current time.
More...
#include <numbers.h>
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@b.nosp@m.rasm.nosp@m.ap.co.nosp@m.m.br Integer based time class.
ost::Time::Time |
( |
time_t |
tm | ) |
|
ost::Time::Time |
( |
tm * |
dt | ) |
|
ost::Time::Time |
( |
char * |
str, |
|
|
size_t |
size = 0 |
|
) |
| |
ost::Time::Time |
( |
int |
hour, |
|
|
int |
minute, |
|
|
int |
second |
|
) |
| |
virtual ost::Time::~Time |
( |
| ) |
|
|
virtual |
void ost::Time::fromSeconds |
( |
char * |
buf | ) |
const |
|
protected |
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 |
( |
| ) |
|
|
inline |
bool ost::Time::operator! |
( |
void |
| ) |
const |
|
inline |
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 | ) |
|
int ost::Time::operator< |
( |
const Time & |
time | ) |
|
int ost::Time::operator<= |
( |
const Time & |
time | ) |
|
int ost::Time::operator== |
( |
const Time & |
time | ) |
|
int ost::Time::operator> |
( |
const Time & |
time | ) |
|
int ost::Time::operator>= |
( |
const Time & |
time | ) |
|
void ost::Time::setTime |
( |
char * |
str, |
|
|
size_t |
size = 0 |
|
) |
| |
void ost::Time::toSeconds |
( |
int |
hour, |
|
|
int |
minute, |
|
|
int |
second |
|
) |
| |
|
protected |
virtual void ost::Time::update |
( |
void |
| ) |
|
|
protectedvirtual |
Time operator+ |
( |
const Time & |
time, |
|
|
const int |
val |
|
) |
| |
|
friend |
Time operator+ |
( |
const int |
val, |
|
|
const Time & |
time |
|
) |
| |
|
friend |
Time operator- |
( |
const Time & |
time, |
|
|
const int |
val |
|
) |
| |
|
friend |
Time operator- |
( |
const int |
val, |
|
|
const Time & |
time |
|
) |
| |
|
friend |
The documentation for this class was generated from the following file: