Xbase64 Class Library  3.1.2
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
xbDate Class Reference

xbDate class More...

#include <xbdate.h>

Public Member Functions

 xbDate ()
 Short description. More...
 
 xbDate (const char *Date8)
 Short description. More...
 
 xbDate (const xbString &Date8)
 Short description. More...
 
virtual ~xbDate ()
 Destructor. More...
 
const xbStringGetDate () const
 Short description. More...
 
xbStringGetDate ()
 Short description. More...
 
const xbStringGetFormattedDate () const
 Short description. More...
 
xbStringGetFormattedDate ()
 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 CenturyOf (const char *Date8) 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 CalcRollingCenturyForYear (int) const
 Short description. More...
 
int DateIsValid (const char *Date8) const
 Short description. More...
 
int DateIsValid (const xbString &Date8) const
 Short description. More...
 
xbStringLastDayOfMonth (const char *Date8)
 Short description. More...
 
xbStringLastDayOfMonth (const xbString &Date8)
 Short description. More...
 
xbStringLastDayOfMonth ()
 Short description. More...
 
xbStringSysdate ()
 Short description. More...
 
xbStringJulToDate8 (long)
 Short description. More...
 
xbStringFormatCTODdate (const char *indate)
 Short description. More...
 
xbStringFormatDate (const char *Format, const char *Date8)
 Short description. More...
 
xbStringFormatDate (const xbString &Format, const char *Date8)
 Short description. More...
 
xbStringFormatDate (const char *Format, const xbString &Date8)
 Short description. More...
 
xbStringFormatDate (const xbString &Format, const xbString &Date8)
 Short description. More...
 
xbStringFormatDate (const char *Format)
 Short description. More...
 
xbStringFormatDate (const xbString &Format)
 Short description. More...
 
xbStringCharDayOf (const char *Date8)
 Short description. More...
 
xbStringCharDayOf (const xbString &Date8)
 Short description. More...
 
xbStringCharDayOf ()
 Short description. More...
 
xbStringCharMonthOf (const char *Date8)
 Short description. More...
 
xbStringCharMonthOf (const xbString &Date8)
 Short description. More...
 
xbStringCharMonthOf ()
 Short description. More...
 
xbStringoperator+= (int)
 Short description. More...
 
xbStringoperator-= (int)
 Short description. More...
 
xbStringoperator++ (int)
 Short description. More...
 
xbStringoperator-- (int)
 Short description. More...
 
xbStringoperator+ (int)
 Short description. More...
 
xbStringoperator- (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]
 

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

◆ ~xbDate()

xbDate::~xbDate ( )
virtual

Destructor.

Member Function Documentation

◆ CalcRollingCenturyForYear()

int xbDate::CalcRollingCenturyForYear ( int  CalcYear) const

Short description.

Parameters
CalcYear

◆ CenturyOf()

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

Short description.

Parameters
Date8

◆ CharDayOf() [1/3]

xbString& xbDate::CharDayOf ( )
inline

Short description.

◆ CharDayOf() [2/3]

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

Short description.

Parameters
Date8

◆ CharDayOf() [3/3]

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

Short description.

◆ CharMonthOf() [1/3]

xbString& xbDate::CharMonthOf ( )
inline

Short description.

◆ CharMonthOf() [2/3]

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

Short description.

Parameters
Date8

◆ CharMonthOf() [3/3]

xbString& xbDate::CharMonthOf ( const xbString Date8)
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
inline

Short description.

◆ DayOf() [2/3]

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

Short description.

Parameters
Format
Date8

◆ DayOf() [3/3]

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

Short description.

◆ FormatCTODdate()

xbString & xbDate::FormatCTODdate ( const char *  indate)

Short description.

Parameters
indatein the format of MM/DD/YY

◆ FormatDate() [1/6]

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

Short description.

◆ FormatDate() [2/6]

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

Short description.

Parameters
Format
Date8

◆ FormatDate() [3/6]

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

Short description.

◆ FormatDate() [4/6]

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

Short description.

◆ FormatDate() [5/6]

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

Short description.

◆ FormatDate() [6/6]

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

Short description.

◆ GetDate() [1/2]

xbString& xbDate::GetDate ( )
inline

Short description.

◆ GetDate() [2/2]

const xbString& xbDate::GetDate ( ) const
inline

Short description.

◆ GetFormattedDate() [1/2]

xbString& xbDate::GetFormattedDate ( )
inline

Short description.

◆ GetFormattedDate() [2/2]

const xbString& xbDate::GetFormattedDate ( ) const
inline

Short description.

◆ IsLeapYear() [1/3]

int xbDate::IsLeapYear ( ) const
inline

Short description.

◆ IsLeapYear() [2/3]

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

Short description.

Parameters
Date8

◆ IsLeapYear() [3/3]

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

Short description.

◆ JulianDays() [1/3]

long xbDate::JulianDays ( ) const
inline

Short description.

◆ JulianDays() [2/3]

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

Short description.

Parameters
Date8

◆ JulianDays() [3/3]

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

Short description.

◆ JulToDate8()

xbString & xbDate::JulToDate8 ( long  days)

Short description.

Parameters
days

◆ LastDayOfMonth() [1/3]

xbString& xbDate::LastDayOfMonth ( )
inline

Short description.

◆ LastDayOfMonth() [2/3]

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

Short description.

Parameters
Date8

◆ LastDayOfMonth() [3/3]

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

Short description.

◆ MonthOf() [1/3]

int xbDate::MonthOf ( ) const
inline

Short description.

◆ MonthOf() [2/3]

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

Short description.

Parameters
Date8

◆ MonthOf() [3/3]

int xbDate::MonthOf ( const xbString Date8) 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]

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

Short description.

◆ operator-() [2/2]

xbString & xbDate::operator- ( int  count)

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
inline

Short description.

◆ YearOf() [2/3]

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

Short description.

Parameters
Date8

◆ YearOf() [3/3]

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

Short description.

Member Data Documentation

◆ AggregatedDaysInMonths

int xbDate::AggregatedDaysInMonths
staticprotected

◆ cDate8

xbString xbDate::cDate8
protected

◆ DaysInMonths

int xbDate::DaysInMonths
staticprotected

◆ fDate

xbString xbDate::fDate
protected

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