AURobotServers  4
Public Member Functions | List of all members
UTimeNow Class Reference

#include <utime.h>

Inheritance diagram for UTimeNow:
Inheritance graph

Public Member Functions

 UTimeNow ()
 
- Public Member Functions inherited from UTime
void add (double seconds)
 
void clear ()
 
char * getAsSml (const char *name, char *buff, int buffCnt)
 
int GetDateString (char *sDate, bool local=true)
 
int getDateString (char *sDate, bool local=true)
 
char * getDateTimeAsString (char *info, bool local=true)
 
int GetDayInMonth ()
 
int GetDayInYear ()
 
long GetDaySerial ()
 
double GetDecSec ()
 
double getDecSec ()
 
double GetDecSec (UTime t1)
 
char * getForFilename (char *info, bool local=true)
 
char GetHour (bool local=true)
 
char GetJustSec ()
 
char getJustSec ()
 
int getMdrFromString (const char *month3char)
 
unsigned long GetMicrosec ()
 
unsigned long getMicrosec ()
 
long GetMilisec ()
 
long getMilisec ()
 
char GetMin ()
 
int GetMonth (int *dayInMonth=NULL, bool local=true)
 
unsigned long GetSec ()
 
unsigned long getSec ()
 
int GetTimeAsString (char *info, bool local=true)
 
int getTimeAsString (char *info, bool local=true)
 
double getTimePassed ()
 
struct tm getTimeTm (bool local=true)
 
struct timeval getTimeval ()
 
int GetYear (int *dayInYear=NULL, bool local=true)
 
bool isLeapYear (int year)
 
int LoadFromReg (Uconfig *ini, const char *subject, const char *key)
 
void Now ()
 
void now ()
 
bool operator!= (UTime other)
 
UTime operator+ (double seconds)
 
void operator+= (double seconds)
 
double operator- (UTime old)
 
UTime operator- (double seconds)
 
void operator-= (double seconds)
 
bool operator< (UTime other)
 
bool operator< (double other)
 
bool operator<= (double other)
 
bool operator<= (UTime other)
 
bool operator== (UTime other)
 
bool operator> (UTime other)
 
bool operator> (double other)
 
bool operator>= (UTime other)
 
bool operator>= (double other)
 
void print (const char *prestring=NULL)
 
int SaveToReg (Uconfig *ini, const char *subject, const char *key)
 
void SetTime (timeval iTime)
 
void setTime (double decimalSec)
 
void SetTime (double decimalSec)
 
void SetTime (long sec, long uSec)
 
void setTime (long sec, long uSec)
 
void SetTime (int year, int month, int day, int hour=0, int min=0, int sec=0, long usec=0)
 
void setTime (int year, int month, int day, int hour=0, int min=0, int sec=0, long usec=0)
 
void setTimeTod (const char *tod)
 
void setTimeU (unsigned long sec, unsigned long uSec)
 
void show (const char *prestring=NULL)
 
void sub (double seconds)
 
 UTime ()
 
 ~UTime ()
 

Additional Inherited Members

- Public Attributes inherited from UTime
timeval time
 
bool valid
 

Detailed Description

Class just as UTime, but the class initializes to creation time. This can be usefull when creation time for application is needed, as constructors are initiated before the main() call.

Constructor & Destructor Documentation

UTimeNow::UTimeNow ( )
inline

References UTime::now().


The documentation for this class was generated from the following file: