sipxportlib  Version 3.3
Public Member Functions | Static Public Member Functions | List of all members
OsDateTimeWnt Class Reference

#include <OsDateTimeWnt.h>

Inheritance diagram for OsDateTimeWnt:
Inheritance graph
[legend]
Collaboration diagram for OsDateTimeWnt:
Collaboration graph
[legend]

Public Member Functions

 OsDateTimeWnt ()
 
 OsDateTimeWnt (const unsigned short year, const unsigned char month, const unsigned char day, const unsigned char hour, const unsigned char minute, const unsigned char second, const unsigned int microsecond)
 
 OsDateTimeWnt (const OsDateTimeWnt &rOsDateTimeWnt)
 
 OsDateTimeWnt (const OsTime &toTime)
 Convert an OsTime to an OsDateTime. More...
 
virtual ~OsDateTimeWnt ()
 
OsDateTimeWntoperator= (const OsDateTimeWnt &rhs)
 
virtual OsStatus cvtToTimeSinceBoot (OsTime &rTime) const
 param: (in) tzOffsetSecs - local time offset (seconds relative to GMT) param: (in) dstRule - daylight savings time rule More...
 
- Public Member Functions inherited from OsDateTimeBase
virtual OsStatus cvtToTimeSinceEpoch (OsTime &rTime) const
 
void getDayOfWeek (int &dayOfWeek)
 param: (in) year - 4 digit year param: (in) month - 0-11 param: (in) dayOfMonth - the day of the month 1-31 param: (out) dayOfWeek - the day of the week 0-6 More...
 
unsigned int getMicrosecond () const
 param: (out) dayOfWeek - the day of the week 0-6 More...
 
unsigned short getYear () const
 
unsigned char getMonth () const
 
unsigned char getDay () const
 
unsigned char getHour () const
 
unsigned char getMinute () const
 
unsigned char getSecond () const
 
virtual void getHttpTimeString (UtlString &dataString)
 
void getSqlTimeStringZ (UtlString &dateString)
 Set the dateString to the time as UTC time in a Postgres compatible format: 2002-08-26 19:21:32.000. More...
 
void getIsoTimeStringZ (UtlString &dateString)
 Set the dateString to the time as UTC time in the following format: 2002-08-26T19:21:32.000Z. More...
 
void getIsoTimeStringZus (UtlString &dateString)
 Set the dateString to the time as UTC time in the following format: 2002-08-26T19:21:32.000000Z. More...
 

Static Public Member Functions

static void setTime (struct timespec gmt, int tzOffsetSecs, DstRule dstRule)
 
static void setTimeZone (int tzOffsetSecs, DstRule dstRule)
 param: (in) gmt - time relative to the beginning of 1970 (GMT) param: (in) tzOffsetSecs - local time offset (seconds relative to GMT) param: (in) dstRule - daylight savings time rule More...
 
static void getCurTime (OsDateTimeWnt &rDateTime)
 
static void getCurTime (OsTime &rTime)
 
static void getCurTimeSinceBoot (OsTime &rTime)
 
static unsigned long getSecsSinceEpoch (void)
 
- Static Public Member Functions inherited from OsDateTimeBase
static long tm2Epoch (const struct tm *t)
 
static long convertHttpDateToEpoch (const char *date)
 returns: the number of seconds since the begining of 1970. More...
 
static void setTime (struct timespec gmt)
 returns: the number of seconds since the begining of 1970. More...
 
static void setTime (struct timespec gmt, int tzOffsetSecs, DstRule dstRule)
 
static void setTimeZone (int tzOffsetSecs, DstRule dstRule)
 param: (in) gmt - time relative to the beginning of 1970 (GMT) param: (in) tzOffsetSecs - local time offset (seconds relative to GMT) param: (in) dstRule - daylight savings time rule More...
 
static void getDayOfWeek (int year, int month, int dayOfMonth, int &dayOfWeek)
 
static void getLocalTimeString (UtlString &dateString)
 
static void getCurTime (OsDateTimeBase &rDateTime)
 
static void getCurTime (OsTime &rTime)
 
static void getCurTimeSinceBoot (OsTime &rTime)
 
static unsigned long getSecsSinceEpoch (void)
 

Additional Inherited Members

- Public Types inherited from OsDateTimeBase
enum  DstRule { DST_NONE, DST_NORTH_AMERICA, DST_WESTERN_EUROPE }
 
- Static Public Attributes inherited from OsDateTimeBase
static const char * spMonthStrings [12]
 
static const char * spDayStrings [7]
 
- Protected Member Functions inherited from OsDateTimeBase
 OsDateTimeBase ()
 
 OsDateTimeBase (const unsigned short year, const unsigned char month, const unsigned char day, const unsigned char hour, const unsigned char minute, const unsigned char second, const unsigned int microsecond)
 
 OsDateTimeBase (const OsDateTimeBase &rOsDateTime)
 
virtual ~OsDateTimeBase ()
 
OsDateTimeBaseoperator= (const OsDateTimeBase &rhs)
 
- Protected Attributes inherited from OsDateTimeBase
unsigned int mMicrosecond
 
unsigned short mYear
 
unsigned char mMonth
 
unsigned char mDay
 
unsigned char mHour
 
unsigned char mMinute
 
unsigned char mSecond
 
- Static Protected Attributes inherited from OsDateTimeBase
static DstRule sDstRule = OsDateTimeBase::DST_NONE
 
static int sDstYear = -1
 
static int sTzOffsetSecs = 0
 

Constructor & Destructor Documentation

OsDateTimeWnt ( const unsigned short  year,
const unsigned char  month,
const unsigned char  day,
const unsigned char  hour,
const unsigned char  minute,
const unsigned char  second,
const unsigned int  microsecond 
)
OsDateTimeWnt ( const OsDateTimeWnt rOsDateTimeWnt)
OsDateTimeWnt ( const OsTime toTime)

Convert an OsTime to an OsDateTime.

~OsDateTimeWnt ( )
virtual

Member Function Documentation

OsDateTimeWnt & operator= ( const OsDateTimeWnt rhs)
void setTime ( struct timespec  gmt,
int  tzOffsetSecs,
DstRule  dstRule 
)
static
void setTimeZone ( int  tzOffsetSecs,
DstRule  dstRule 
)
static

param: (in) gmt - time relative to the beginning of 1970 (GMT) param: (in) tzOffsetSecs - local time offset (seconds relative to GMT) param: (in) dstRule - daylight savings time rule

OsStatus cvtToTimeSinceBoot ( OsTime rTime) const
virtual

param: (in) tzOffsetSecs - local time offset (seconds relative to GMT) param: (in) dstRule - daylight savings time rule

Implements OsDateTimeBase.

void getCurTime ( OsDateTimeWnt rDateTime)
static
void getCurTime ( OsTime rTime)
static
void getCurTimeSinceBoot ( OsTime rTime)
static
unsigned long getSecsSinceEpoch ( void  )
static