17#ifndef __XB_XBDATE_H__
18#define __XB_XBDATE_H__
20#ifdef CMAKE_COMPILER_IS_GNUCC
33#define JUL_OFFSET 1721425L
66 xbDate(
const char * Date8 );
68 xbDate( xbInt32 lJulDate );
71 void operator=(
const xbDate &d );
72 void operator+=( xbInt32 i );
73 void operator-=( xbInt32 i );
74 void operator++( xbInt32 i );
75 void operator--( xbInt32 i );
77 xbInt32 operator-(
const xbDate & )
const;
78 const char * operator-( xbInt32 i );
79 const char * operator+( xbInt32 i );
88 xbInt16 CalcRollingCenturyForYear( xbInt16 year )
const;
89 xbInt16 CenturyOf()
const;
90 xbInt16 CharDayOf(
xbString &sOutCharDay );
91 xbInt16 CharMonthOf(
xbString &sOutCharMonth );
93 xbInt16 DayOf( xbInt16 iFormat )
const;
94 xbInt16 CTOD(
const xbString &sCtodInDate );
96 const char *Str()
const;
97 xbBool IsLeapYear( xbInt16 iYear )
const;
99 xbInt32 JulianDays()
const;
100 xbInt16 JulToDate8( xbInt32 lJulDate );
101 xbInt16 LastDayOfMonth();
102 xbInt16 MonthOf()
const;
103 xbInt16 Set(
const xbString &Date8 );
105 xbInt16 YearOf()
const;
107#ifdef XB_DEBUG_SUPPORT
108 void Dump(
const char * title );
109 void DumpDateTables();
113 void SetDateTables();
116 static int iAggregatedDaysInMonths[2][13];
117 static int iDaysInMonths[2][13];
xbDate class.
Definition: xbdate.h:62
Class for handling shared system variables.
Definition: xbssv.h:59
Class for handling string data.
Definition: xbstring.h:50
Definition: xbdate.cpp:19
short int xbBool
Definition: xbtypes.h:24