#include <datetime.h>
Public Member Functions | |
Time () | |
Time (int h, int m, int s=0, int ms=0) | |
bool | isNull () const |
bool | isValid () const |
int | hour () const |
int | minute () const |
int | second () const |
int | msec () const |
operator std::string () const | |
std::string | toString () const |
bool | setHMS (int h, int m, int s, int ms=0) |
Time | addSecs (int nsecs) const |
int | secsTo (const Time &t) const |
Time | addMSecs (int ms) const |
int | msecsTo (const Time &t) const |
bool | operator== (const Time &t) const |
bool | operator!= (const Time &t) const |
bool | operator< (const Time &t) const |
bool | operator<= (const Time &t) const |
bool | operator> (const Time &t) const |
bool | operator>= (const Time &t) const |
void | start () |
int | restart () |
int | elapsed () const |
Static Public Member Functions | |
static Time | currentTime () |
static Time | fromString (const std::string &s) |
static bool | isValid (int h, int m, int s, int ms=0) |
Wt::Time::Time | ( | ) |
Wt::Time::Time | ( | int | h, | |
int | m, | |||
int | s = 0 , |
|||
int | ms = 0 | |||
) |
Time Wt::Time::addMSecs | ( | int | ms | ) | const |
Time Wt::Time::addSecs | ( | int | nsecs | ) | const |
Time Wt::Time::currentTime | ( | ) | [static] |
int Wt::Time::elapsed | ( | ) | const |
Time Wt::Time::fromString | ( | const std::string & | s | ) | [static] |
int Wt::Time::hour | ( | ) | const [inline] |
bool Wt::Time::isNull | ( | ) | const |
bool Wt::Time::isValid | ( | int | h, | |
int | m, | |||
int | s, | |||
int | ms = 0 | |||
) | [static] |
bool Wt::Time::isValid | ( | ) | const |
int Wt::Time::minute | ( | ) | const [inline] |
int Wt::Time::msec | ( | ) | const [inline] |
int Wt::Time::msecsTo | ( | const Time & | t | ) | const |
Wt::Time::operator std::string | ( | ) | const |
bool Wt::Time::operator!= | ( | const Time & | t | ) | const |
bool Wt::Time::operator< | ( | const Time & | t | ) | const |
bool Wt::Time::operator<= | ( | const Time & | t | ) | const |
bool Wt::Time::operator== | ( | const Time & | t | ) | const |
bool Wt::Time::operator> | ( | const Time & | t | ) | const |
bool Wt::Time::operator>= | ( | const Time & | t | ) | const |
int Wt::Time::restart | ( | ) |
int Wt::Time::second | ( | ) | const [inline] |
int Wt::Time::secsTo | ( | const Time & | t | ) | const |
bool Wt::Time::setHMS | ( | int | h, | |
int | m, | |||
int | s, | |||
int | ms = 0 | |||
) |
void Wt::Time::start | ( | ) |
std::string Wt::Time::toString | ( | ) | const |
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.