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.
§ Time() [1/5]
ost::Time::Time |
( |
time_t |
tm | ) |
|
§ Time() [2/5]
ost::Time::Time |
( |
tm * |
dt | ) |
|
§ Time() [3/5]
ost::Time::Time |
( |
char * |
str, |
|
|
size_t |
size = 0 |
|
) |
| |
§ Time() [4/5]
ost::Time::Time |
( |
int |
hour, |
|
|
int |
minute, |
|
|
int |
second |
|
) |
| |
§ Time() [5/5]
§ ~Time()
virtual ost::Time::~Time |
( |
| ) |
|
|
virtual |
§ fromSeconds()
void ost::Time::fromSeconds |
( |
char * |
buf | ) |
const |
|
protected |
§ getHour()
int ost::Time::getHour |
( |
void |
| ) |
const |
§ getMinute()
int ost::Time::getMinute |
( |
void |
| ) |
const |
§ getSecond()
int ost::Time::getSecond |
( |
void |
| ) |
const |
§ getTime() [1/3]
char* ost::Time::getTime |
( |
char * |
buffer | ) |
const |
§ getTime() [2/3]
time_t ost::Time::getTime |
( |
void |
| ) |
const |
§ getTime() [3/3]
tm* ost::Time::getTime |
( |
tm * |
buf | ) |
const |
§ getValue()
long ost::Time::getValue |
( |
void |
| ) |
const |
§ isValid()
bool ost::Time::isValid |
( |
void |
| ) |
const |
§ operator long()
ost::Time::operator long |
( |
| ) |
|
|
inline |
§ operator!()
bool ost::Time::operator! |
( |
void |
| ) |
const |
|
inline |
§ operator!=()
§ operator()()
String ost::Time::operator() |
( |
| ) |
const |
§ operator++()
Time& ost::Time::operator++ |
( |
| ) |
|
§ operator+=()
Time& ost::Time::operator+= |
( |
const int |
val | ) |
|
§ operator--()
Time& ost::Time::operator-- |
( |
| ) |
|
§ operator-=()
Time& ost::Time::operator-= |
( |
const int |
val | ) |
|
§ operator<()
int ost::Time::operator< |
( |
const Time & |
time | ) |
|
§ operator<=()
int ost::Time::operator<= |
( |
const Time & |
time | ) |
|
§ operator==()
int ost::Time::operator== |
( |
const Time & |
time | ) |
|
§ operator>()
int ost::Time::operator> |
( |
const Time & |
time | ) |
|
§ operator>=()
int ost::Time::operator>= |
( |
const Time & |
time | ) |
|
§ setTime()
void ost::Time::setTime |
( |
char * |
str, |
|
|
size_t |
size = 0 |
|
) |
| |
§ toSeconds()
void ost::Time::toSeconds |
( |
int |
hour, |
|
|
int |
minute, |
|
|
int |
second |
|
) |
| |
|
protected |
§ update()
virtual void ost::Time::update |
( |
void |
| ) |
|
|
protectedvirtual |
§ operator+ [1/3]
§ operator+ [2/3]
Time operator+ |
( |
const Time & |
time, |
|
|
const int |
val |
|
) |
| |
|
friend |
§ operator+ [3/3]
Time operator+ |
( |
const int |
val, |
|
|
const Time & |
time |
|
) |
| |
|
friend |
§ operator- [1/3]
§ operator- [2/3]
Time operator- |
( |
const Time & |
time, |
|
|
const int |
val |
|
) |
| |
|
friend |
§ operator- [3/3]
Time operator- |
( |
const int |
val, |
|
|
const Time & |
time |
|
) |
| |
|
friend |
§ seconds
The documentation for this class was generated from the following file: