ost::SysTime(3) | Library Functions Manual | ost::SysTime(3) |
ost::SysTime - This class is used to access non-reentrant date and time functions in the standard C library.
#include <thread.h>
static time_t getTime (time_t *tloc=NULL)
static time_t time (time_t *tloc)
static int getTimeOfDay (struct timeval *tp)
static int gettimeofday (struct timeval *tp, struct timezone *)
static struct tm * getLocalTime (const time_t *clock, struct tm
*result)
static struct tm * locatime (const time_t *clock, struct tm *result)
static struct tm * getGMTTime (const time_t *clock, struct tm *result)
static struct tm * gmtime (const time_t *clock, struct tm *result)
static void lock (void)
static void unlock (void)
This class is used to access non-reentrant date and time functions in the standard C library.
The class has two purposes:
Note:
Also note that some functions that returned pointers have been redone to take that pointer as an argument instead, making the caller responsible for memory allocation/deallocation. This is almost how POSIX specifies *_r functions (reentrant versions of the standard time functions), except the POSIX functions also return the given pointer while we do not. We don't use the *_r functions as they aren't all generally available on all platforms yet.
Author:
Referenced by ost::gmtime_r().
Referenced by ost::localtime_r().
References ost::Mutex::enterMutex().
References ost::Mutex::leaveMutex().
Generated automatically by Doxygen for GNU CommonC++ from the source code.
Wed Oct 31 2018 | GNU CommonC++ |