Xbase Class Library  2.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
xbDate Class Reference

xbDate class More...

#include <xdate.h>

Inheritance diagram for xbDate:
xbXBase

Public Member Functions

 xbDate ()
 Short description. More...
 
 xbDate (const char *Date8)
 Short description. More...
 
 xbDate (const xbString &Date8)
 Short description. More...
 
const xbString & GetDate () const
 Short description. More...
 
xbString & GetDate ()
 Short description. More...
 
const xbString & GetFormattedDate () const
 Short description. More...
 
xbString & GetFormattedDate ()
 Short description. More...
 
int SetDate (const char *Date8)
 Short description. More...
 
int SetDate (const xbString &Date8)
 Short description. More...
 
long JulianDays (const char *Date8) const
 Short description. More...
 
long JulianDays (const xbString &Date8) const
 Short description. More...
 
long JulianDays () const
 Short description. More...
 
int YearOf (const char *Date8) const
 Short description. More...
 
int YearOf (const xbString &Date8) const
 Short description. More...
 
int YearOf () const
 Short description. More...
 
int MonthOf (const char *Date8) const
 Short description. More...
 
int MonthOf (const xbString &Date8) const
 Short description. More...
 
int MonthOf () const
 Short description. More...
 
int DayOf (int Format, const char *Date8) const
 Short description. More...
 
int DayOf (int Format, const xbString &Date8) const
 Short description. More...
 
int DayOf (int Format) const
 Short description. More...
 
int IsLeapYear (const char *Date8) const
 Short description. More...
 
int IsLeapYear (const xbString &Date8) const
 Short description. More...
 
int IsLeapYear () const
 Short description. More...
 
int DateIsValid (const char *Date8) const
 Short description. More...
 
int DateIsValid (const xbString &Date8) const
 Short description. More...
 
xbString & LastDayOfMonth (const char *Date8)
 Short description. More...
 
xbString & LastDayOfMonth (const xbString &Date8)
 Short description. More...
 
xbString & LastDayOfMonth ()
 Short description. More...
 
xbString & Sysdate ()
 Short description. More...
 
xbString & JulToDate8 (long)
 Short description. More...
 
xbString & FormatDate (const char *Format, const char *Date8)
 Short description. More...
 
xbString & FormatDate (const xbString &Format, const char *Date8)
 Short description. More...
 
xbString & FormatDate (const char *Format, const xbString &Date8)
 Short description. More...
 
xbString & FormatDate (const xbString &Format, const xbString &Date8)
 Short description. More...
 
xbString & FormatDate (const char *Format)
 Short description. More...
 
xbString & FormatDate (const xbString &Format)
 Short description. More...
 
xbString & CharDayOf (const char *Date8)
 Short description. More...
 
xbString & CharDayOf (const xbString &Date8)
 Short description. More...
 
xbString & CharDayOf ()
 Short description. More...
 
xbString & CharMonthOf (const char *Date8)
 Short description. More...
 
xbString & CharMonthOf (const xbString &Date8)
 Short description. More...
 
xbString & CharMonthOf ()
 Short description. More...
 
xbString & operator+= (int)
 Short description. More...
 
xbString & operator-= (int)
 Short description. More...
 
xbString & operator++ (int)
 Short description. More...
 
xbString & operator-- (int)
 Short description. More...
 
xbString & operator+ (int)
 Short description. More...
 
xbString & operator- (int)
 Short description. More...
 
long operator- (const xbDate &) const
 Short description. More...
 
int operator== (const xbDate &) const
 Short description. More...
 
int operator!= (const xbDate &) const
 Short description. More...
 
int operator< (const xbDate &) const
 Short description. More...
 
int operator> (const xbDate &) const
 Short description. More...
 
int operator<= (const xbDate &) const
 Short description. More...
 
int operator>= (const xbDate &) const
 Short description. More...
 

Protected Member Functions

void SetDateTables ()
 Short description. More...
 

Protected Attributes

xbString cDate8
 
xbString fDate
 

Static Protected Attributes

static int AggregatedDaysInMonths [2][13]
 
static int DaysInMonths [2][13]
 
static const xbString * Days [7]
 
static const xbString * Months [12]
 

Detailed Description

xbDate class

Constructor & Destructor Documentation

§ xbDate() [1/3]

xbDate::xbDate ( )

Short description.

§ xbDate() [2/3]

xbDate::xbDate ( const char *  Date8)

Short description.

Parameters
Date8

§ xbDate() [3/3]

xbDate::xbDate ( const xbString &  Date8)

Short description.

Parameters
Date8

Member Function Documentation

§ CharDayOf() [1/3]

xbString & xbDate::CharDayOf ( const char *  Date8)

Short description.

Parameters
Date8

§ CharDayOf() [2/3]

xbString& xbDate::CharDayOf ( const xbString &  Date8)
inline

Short description.

§ CharDayOf() [3/3]

xbString& xbDate::CharDayOf ( )
inline

Short description.

§ CharMonthOf() [1/3]

xbString & xbDate::CharMonthOf ( const char *  Date8)

Short description.

Parameters
Date8

§ CharMonthOf() [2/3]

xbString& xbDate::CharMonthOf ( const xbString &  Date8)
inline

Short description.

§ CharMonthOf() [3/3]

xbString& xbDate::CharMonthOf ( )
inline

Short description.

§ DateIsValid() [1/2]

int xbDate::DateIsValid ( const char *  Date8) const

Short description.

Parameters
Date8

§ DateIsValid() [2/2]

int xbDate::DateIsValid ( const xbString &  Date8) const
inline

Short description.

§ DayOf() [1/3]

int xbDate::DayOf ( int  Format,
const char *  Date8 
) const

Short description.

Parameters
Format
Date8

§ DayOf() [2/3]

int xbDate::DayOf ( int  Format,
const xbString &  Date8 
) const
inline

Short description.

§ DayOf() [3/3]

int xbDate::DayOf ( int  Format) const
inline

Short description.

§ FormatDate() [1/6]

xbString & xbDate::FormatDate ( const char *  Format,
const char *  Date8 
)

Short description.

Parameters
Format
Date8

§ FormatDate() [2/6]

xbString& xbDate::FormatDate ( const xbString &  Format,
const char *  Date8 
)
inline

Short description.

§ FormatDate() [3/6]

xbString& xbDate::FormatDate ( const char *  Format,
const xbString &  Date8 
)
inline

Short description.

§ FormatDate() [4/6]

xbString& xbDate::FormatDate ( const xbString &  Format,
const xbString &  Date8 
)
inline

Short description.

§ FormatDate() [5/6]

xbString& xbDate::FormatDate ( const char *  Format)
inline

Short description.

§ FormatDate() [6/6]

xbString& xbDate::FormatDate ( const xbString &  Format)
inline

Short description.

§ GetDate() [1/2]

const xbString& xbDate::GetDate ( ) const
inline

Short description.

§ GetDate() [2/2]

xbString& xbDate::GetDate ( )
inline

Short description.

§ GetFormattedDate() [1/2]

const xbString& xbDate::GetFormattedDate ( ) const
inline

Short description.

§ GetFormattedDate() [2/2]

xbString& xbDate::GetFormattedDate ( )
inline

Short description.

§ IsLeapYear() [1/3]

int xbDate::IsLeapYear ( const char *  Date8) const

Short description.

Parameters
Date8

§ IsLeapYear() [2/3]

int xbDate::IsLeapYear ( const xbString &  Date8) const
inline

Short description.

§ IsLeapYear() [3/3]

int xbDate::IsLeapYear ( ) const
inline

Short description.

§ JulianDays() [1/3]

long xbDate::JulianDays ( const char *  Date8) const

Short description.

Parameters
Date8

§ JulianDays() [2/3]

long xbDate::JulianDays ( const xbString &  Date8) const
inline

Short description.

§ JulianDays() [3/3]

long xbDate::JulianDays ( ) const
inline

Short description.

§ JulToDate8()

xbString & xbDate::JulToDate8 ( long  days)

Short description.

Parameters
days

§ LastDayOfMonth() [1/3]

xbString & xbDate::LastDayOfMonth ( const char *  Date8)

Short description.

Parameters
Date8

§ LastDayOfMonth() [2/3]

xbString& xbDate::LastDayOfMonth ( const xbString &  Date8)
inline

Short description.

§ LastDayOfMonth() [3/3]

xbString& xbDate::LastDayOfMonth ( )
inline

Short description.

§ MonthOf() [1/3]

int xbDate::MonthOf ( const char *  Date8) const

Short description.

Parameters
Date8

§ MonthOf() [2/3]

int xbDate::MonthOf ( const xbString &  Date8) const
inline

Short description.

§ MonthOf() [3/3]

int xbDate::MonthOf ( ) const
inline

Short description.

§ operator!=()

int xbDate::operator!= ( const xbDate &  d) const

Short description.

§ operator+()

xbString & xbDate::operator+ ( int  count)

Short description.

§ operator++()

xbString & xbDate::operator++ ( int  )

Short description.

§ operator+=()

xbString & xbDate::operator+= ( int  count)

Short description.

§ operator-() [1/2]

xbString & xbDate::operator- ( int  count)

Short description.

§ operator-() [2/2]

long xbDate::operator- ( const xbDate &  d) const

Short description.

§ operator--()

xbString & xbDate::operator-- ( int  )

Short description.

§ operator-=()

xbString & xbDate::operator-= ( int  count)

Short description.

§ operator<()

int xbDate::operator< ( const xbDate &  d) const

Short description.

§ operator<=()

int xbDate::operator<= ( const xbDate &  d) const

Short description.

§ operator==()

int xbDate::operator== ( const xbDate &  d) const

Short description.

§ operator>()

int xbDate::operator> ( const xbDate &  d) const

Short description.

§ operator>=()

int xbDate::operator>= ( const xbDate &  d) const

Short description.

§ SetDate() [1/2]

int xbDate::SetDate ( const char *  Date8)

Short description.

Parameters
Date8

§ SetDate() [2/2]

int xbDate::SetDate ( const xbString &  Date8)
inline

Short description.

§ SetDateTables()

void xbDate::SetDateTables ( )
protected

Short description.

§ Sysdate()

xbString & xbDate::Sysdate ( )

Short description.

§ YearOf() [1/3]

int xbDate::YearOf ( const char *  Date8) const

Short description.

Parameters
Date8

§ YearOf() [2/3]

int xbDate::YearOf ( const xbString &  Date8) const
inline

Short description.

§ YearOf() [3/3]

int xbDate::YearOf ( ) const
inline

Short description.

Member Data Documentation

§ AggregatedDaysInMonths

int xbDate::AggregatedDaysInMonths
staticprotected

§ cDate8

xbString xbDate::cDate8
protected

§ Days

const xbString * xbDate::Days
staticprotected

§ DaysInMonths

int xbDate::DaysInMonths
staticprotected

§ fDate

xbString xbDate::fDate
protected

§ Months

const xbString * xbDate::Months
staticprotected

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