Panda3D
|
This class is to provide a consistant interface and storage to clock time More...
#include "time_clock.h"
Public Member Functions | |
Time_Clock (const Time_Clock &timeSrc) | |
yet another constructor | |
Time_Clock (const timeval &in_mytime) | |
Time_Clock (int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, long microseconds=0, int nDST=-1) | |
Construction from parts. | |
Time_Clock (long secs, long usecs) | |
Constructor that takes in sec and usecs. | |
Time_Clock (time_t time) | |
The Constructor that take a time_t objext. | |
std::string | Format (const char *pFormat) const |
Used to allow access to the "C" library strftime functions. | |
std::string | FormatGmt (const char *pFormat) const |
A Wraper to size_t strftime( char *strDest, size_t maxsize, const char
*format, const struct tm *timeptr );. | |
int | GetDay () const |
int | GetDayOfWeek () const |
struct tm * | GetGmtTm (struct tm *ptm) const |
Access the stored time and converts to a struct tm format If storage location is specified then it will stor information in the provided buffer else it will use the library's internal buffer space. | |
int | GetHour () const |
struct tm * | GetLocalTm (struct tm *ptm) const |
Gets The local time in a tm structre from the internal time value. | |
int | GetMinute () const |
int | GetMonth () const |
int | GetSecond () const |
time_t | GetTime () const |
time_t | GetTime_t () |
const timeval & | GetTval () |
const timeval & | GetTval () const |
long | GetUsecPart () |
int | GetYear () const |
bool | operator!= (const Time_Clock &time) const |
.is time != | |
const Time_Clock & | operator+= (const Time_Span &Time_Span) |
const Time_Clock & | operator-= (const Time_Span &Time_Span) |
bool | operator< (const Time_Clock &time) const |
bool | operator<= (const Time_Clock &time) const |
const Time_Clock & | operator= (const Time_Clock &timeSrc) |
const Time_Clock & | operator= (time_t t) |
bool | operator== (const Time_Clock &time) const |
bool | operator> (const Time_Clock &time) const |
bool | operator>= (const Time_Clock &time) const |
void | Set (int nYear, int nMonth, int nDay, int nHour, int nMin, int nSec, long microseconds=0, int nDST=-1) |
void | ToCurrentTime () |
Load this object with the current OS time. | |
Static Public Member Functions | |
static Time_Clock | GetCurrentTime () |
The Default no param constructor. | |
Friends | |
class | Time_Span |
This class is to provide a consistant interface and storage to clock time
. Epoch based time to the second
jan-2000 .. rhh changing all time to use sub second timing...
Definition at line 14 of file time_clock.h.
|
inline |
Definition at line 21 of file time_clock.h.
|
inline |
Definition at line 135 of file time_clock.h.
|
inline |
The Constructor that take a time_t objext.
Definition at line 266 of file time_clock.h.
|
inline |
Constructor that takes in sec and usecs.
Definition at line 275 of file time_clock.h.
|
inline |
Construction from parts.
Definition at line 83 of file time_clock.h.
|
inline |
yet another constructor
Definition at line 285 of file time_clock.h.
|
inline |
Used to allow access to the "C" library strftime functions.
Definition at line 181 of file time_clock.h.
References GetLocalTm().
|
inline |
A Wraper to size_t strftime( char *strDest, size_t maxsize, const char *format, const struct tm *timeptr );.
Definition at line 225 of file time_clock.h.
References GetGmtTm().
|
inlinestatic |
The Default no param constructor.
. Will set time to current system time
Definition at line 127 of file time_clock.h.
|
inline |
Definition at line 395 of file time_clock.h.
|
inline |
Definition at line 431 of file time_clock.h.
|
inline |
Access the stored time and converts to a struct tm format If storage location is specified then it will stor information in the provided buffer else it will use the library's internal buffer space.
Definition at line 153 of file time_clock.h.
Referenced by FormatGmt().
|
inline |
Definition at line 404 of file time_clock.h.
|
inline |
Gets The local time in a tm structre from the internal time value.
Definition at line 166 of file time_clock.h.
Referenced by Format().
|
inline |
Definition at line 413 of file time_clock.h.
|
inline |
Definition at line 386 of file time_clock.h.
|
inline |
Definition at line 422 of file time_clock.h.
|
inline |
Definition at line 369 of file time_clock.h.
|
inline |
Definition at line 58 of file time_clock.h.
|
inline |
Definition at line 69 of file time_clock.h.
|
inline |
Definition at line 72 of file time_clock.h.
|
inline |
Definition at line 61 of file time_clock.h.
|
inline |
Definition at line 377 of file time_clock.h.
|
inline |
.is time !=
Definition at line 302 of file time_clock.h.
|
inline |
Definition at line 42 of file time_general.h.
|
inline |
Definition at line 68 of file time_general.h.
|
inline |
Definition at line 310 of file time_clock.h.
|
inline |
Definition at line 328 of file time_clock.h.
|
inline |
Definition at line 346 of file time_clock.h.
|
inline |
Definition at line 359 of file time_clock.h.
|
inline |
. is time equal
Definition at line 294 of file time_clock.h.
|
inline |
Definition at line 319 of file time_clock.h.
|
inline |
Definition at line 337 of file time_clock.h.
|
inline |
Definition at line 105 of file time_clock.h.
|
inline |
Load this object with the current OS time.
Definition at line 143 of file time_clock.h.
|
friend |
Definition at line 15 of file time_clock.h.