Torque::Time Class Reference#include <timeClass.h>
List of all members.
Detailed Description
64 bit time representation with ten microsecond resolution.
|
Public Member Functions |
| Time () |
| Time (S64 time) |
| Time (S32 year, S32 month, S32 day, S32 hour, S32 minute, S32 second, S32 microsecond) |
| Time (const DateTime &dateTime) |
bool | set (S32 year, S32 month, S32 day, S32 hour, S32 minute, S32 second, S32 microsecond) |
void | get (S32 *year, S32 *month, S32 *day, S32 *hour, S32 *minute, S32 *second, S32 *microsecond) const |
Time | operator+ () const |
Time | operator- () const |
Time | operator+ (const Time &time) const |
Time | operator- (const Time &time) const |
S64 | operator/ (const Time &time) const |
const Time & | operator+= (const Time time) |
const Time & | operator-= (const Time time) |
template<typename T> |
Time | operator * (T scaler) const |
template<typename T> |
Time | operator/ (T scaler) const |
bool | operator== (const Time &time) const |
bool | operator!= (const Time &time) const |
bool | operator< (const Time &time) const |
bool | operator> (const Time &time) const |
bool | operator<= (const Time &time) const |
bool | operator>= (const Time &time) const |
| operator Tester * () const |
bool | operator! () const |
S64 | getSeconds () const |
S64 | getMilliseconds () const |
S64 | getMicroseconds () const |
S64 | getInternalRepresentation () const |
Static Public Member Functions |
static void | getCurrentDateTime (DateTime &dateTime) |
static Time | getCurrentTime () |
Static Public Attributes |
static const S64 | OneDay = TORQUE_CONSTANT_S64(8640000000) |
static const S64 | OneHour = TORQUE_CONSTANT_S64( 360000000) |
static const S64 | OneMinute = TORQUE_CONSTANT_S64( 6000000) |
static const S64 | OneSecond = TORQUE_CONSTANT_S64( 100000) |
static const S64 | OneMillisecond = TORQUE_CONSTANT_S64( 100) |
Private Member Functions |
bool | _isLeapYear (S32 year) const |
S32 | _daysInMonth (S32 month, S32 year) const |
Private Attributes |
S64 | _time |
Friends |
template<typename T> |
Time | operator * (T scaler, Time t) |
Classes |
struct | DateTime |
class | Tester |
Constructor & Destructor Documentation
Torque::Time::Time |
( |
|
) |
[inline] |
Torque::Time::Time |
( |
S64 |
time |
) |
[inline, explicit] |
Torque::Time::Time |
( |
S32 |
year, |
|
|
S32 |
month, |
|
|
S32 |
day, |
|
|
S32 |
hour, |
|
|
S32 |
minute, |
|
|
S32 |
second, |
|
|
S32 |
microsecond | |
|
) |
| | [inline] |
Torque::Time::Time |
( |
const DateTime & |
dateTime |
) |
[inline] |
Member Function Documentation
static void Torque::Time::getCurrentDateTime |
( |
DateTime & |
dateTime |
) |
[static] |
static Time Torque::Time::getCurrentTime |
( |
|
) |
[static] |
void Torque::Time::get |
( |
S32 * |
year, |
|
|
S32 * |
month, |
|
|
S32 * |
day, |
|
|
S32 * |
hour, |
|
|
S32 * |
minute, |
|
|
S32 * |
second, |
|
|
S32 * |
microsecond | |
|
) |
| | const |
Time Torque::Time::operator+ |
( |
|
) |
const [inline] |
Time Torque::Time::operator- |
( |
|
) |
const [inline] |
Time Torque::Time::operator+ |
( |
const Time & |
time |
) |
const [inline] |
Time Torque::Time::operator- |
( |
const Time & |
time |
) |
const [inline] |
S64 Torque::Time::operator/ |
( |
const Time & |
time |
) |
const [inline] |
const Time & Torque::Time::operator+= |
( |
const Time |
time |
) |
[inline] |
const Time & Torque::Time::operator-= |
( |
const Time |
time |
) |
[inline] |
template<typename T>
Time Torque::Time::operator * |
( |
T |
scaler |
) |
const [inline] |
template<typename T>
Time Torque::Time::operator/ |
( |
T |
scaler |
) |
const [inline] |
bool Torque::Time::operator== |
( |
const Time & |
time |
) |
const [inline] |
bool Torque::Time::operator!= |
( |
const Time & |
time |
) |
const [inline] |
bool Torque::Time::operator< |
( |
const Time & |
time |
) |
const [inline] |
bool Torque::Time::operator> |
( |
const Time & |
time |
) |
const [inline] |
bool Torque::Time::operator<= |
( |
const Time & |
time |
) |
const [inline] |
bool Torque::Time::operator>= |
( |
const Time & |
time |
) |
const [inline] |
Torque::Time::operator Tester * |
( |
|
) |
const [inline] |
bool Torque::Time::operator! |
( |
|
) |
const [inline] |
S64 Torque::Time::getSeconds |
( |
|
) |
const [inline] |
S64 Torque::Time::getMilliseconds |
( |
|
) |
const [inline] |
S64 Torque::Time::getMicroseconds |
( |
|
) |
const [inline] |
S64 Torque::Time::getInternalRepresentation |
( |
|
) |
const [inline] |
bool Torque::Time::_isLeapYear |
( |
S32 |
year |
) |
const [private] |
S32 Torque::Time::_daysInMonth |
( |
S32 |
month, |
|
|
S32 |
year | |
|
) |
| | const [private] |
Friends And Related Function Documentation
template<typename T>
Time operator * |
( |
T |
scaler, |
|
|
Time |
t | |
|
) |
| | [friend] |
Member Data Documentation
|