Torque::Time
Engine/source/core/util/timeClass.h
64 bit time representation with ten microsecond resolution.
Classes:
Public Static Attributes
Public Static Functions
getCurrentDateTime(DateTime & dateTime)
Public Functions
Time()
bool
bool
operator!=(const Time & time)
operator+=(const Time time)
operator-=(const Time time)
bool
operator<=(const Time & time)
bool
operator==(const Time & time)
bool
operator>=(const Time & time)
Private Functions
_daysInMonth(S32 month, S32 year)
bool
_isLeapYear(S32 year)
Detailed Description
64 bit time representation with ten microsecond resolution.
Public Static Attributes
const S64 OneDay
const S64 OneHour
const S64 OneMillisecond
const S64 OneMinute
const S64 OneSecond
Private Attributes
S64 _time
Public Static Functions
getCurrentDateTime(DateTime & dateTime)
getCurrentTime()
Public Functions
Time()
Time(const DateTime & dateTime)
Time(S32 year, S32 month, S32 day, S32 hour, S32 minute, S32 second, S32 microsecond)
Time(S64 time)
get(S32 * year, S32 * month, S32 * day, S32 * hour, S32 * minute, S32 * second, S32 * microsecond)
getInternalRepresentation()
getMicroseconds()
getMilliseconds()
getSeconds()
operator Tester*()
operator!()
operator!=(const Time & time)
operator*(T scaler)
operator+()
operator+(const Time & time)
operator+=(const Time time)
operator-()
operator-(const Time & time)
operator-=(const Time time)
operator/(const Time & time)
operator/(T scaler)
operator<(const Time & time)
operator<=(const Time & time)
operator==(const Time & time)
operator>(const Time & time)
operator>=(const Time & time)
set(S32 year, S32 month, S32 day, S32 hour, S32 minute, S32 second, S32 microsecond)
Public Friends
Private Functions
_daysInMonth(S32 month, S32 year)
--------------------------------- PRIVATE Determine the number of days in any given month/year
Parameters:
month | Month to be tested |
year | Year to be tested |
return:
Number of days in month/year
_isLeapYear(S32 year)
--------------------------------- PRIVATE Test to see if a year is a leap year.
Parameters:
year | Year to test for leap year |
return:
true if year is a leap year