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 );
72 void operator=(
const xbDate &d );
73 void operator+=( xbInt32 i );
74 void operator-=( xbInt32 i );
75 void operator++( xbInt32 i );
76 void operator--( xbInt32 i );
78 xbInt32 operator-(
const xbDate & )
const;
79 const char * operator-( xbInt32 i );
80 const char * operator+( xbInt32 i );
89 xbInt16 CalcRollingCenturyForYear( xbInt16 year )
const;
90 xbInt16 CenturyOf()
const;
91 xbInt16 CharDayOf(
xbString &sOutCharDay );
92 xbInt16 CharMonthOf(
xbString &sOutCharMonth );
94 xbInt16 DayOf( xbInt16 iFormat )
const;
95 xbInt16 CTOD(
const xbString &sCtodInDate );
97 const char *Str()
const;
98 xbBool IsLeapYear( xbInt16 iYear )
const;
101 xbInt32 JulianDays()
const;
102 xbInt16 JulToDate8( xbInt32 lJulDate );
103 xbInt16 LastDayOfMonth();
104 xbInt16 MonthOf()
const;
105 xbInt16 Set(
const xbString &Date8 );
107 xbInt16 YearOf()
const;
109#ifdef XB_DEBUG_SUPPORT
110 void Dump(
const char * title );
111 void DumpDateTables();
115 void SetDateTables();
119 static int iAggregatedDaysInMonths[2][13];
120 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