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 );
97 const char *Str()
const;
98 xbBool IsLeapYear( xbInt16 iYear )
const;
100 xbInt32 JulianDays()
const;
101 xbInt16 JulToDate8( xbInt32 lJulDate );
102 xbInt16 LastDayOfMonth();
103 xbInt16 MonthOf()
const;
104 xbInt16 Set(
const xbString &Date8 );
106 xbInt16 YearOf()
const;
108#ifdef XB_DEBUG_SUPPORT
109 void Dump(
const char * title );
110 void DumpDateTables();
114 void SetDateTables();
117 static int iAggregatedDaysInMonths[2][13];
118 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