33 HK_Date(
int Days,
int Month,
int Year);
63 bool SetDate(
int Days,
int Month,
int Year);
68 std::vector<std::string>
SplitStrings(std::string In, std::string Split);
72 std::string
ToReadable(std::string Separator,
int Mode);
const int HK_DateMode_YMD
const int HK_DateMode_MDY
const int HK_DateMode_DMY
A Class For Managing Dates.
int GetMonth()
Returns Month Value.
int HK_Month
Holds The Month Part Of The Date.
void SetMonth(int Month)
Sets Month Value, Doesn't Check If Its Valid.
int Difference(HK_Date Date)
Returns The Number Of Days Difference Between This HK_Date And The Supplied Date.
bool IsEqualMonth(HK_Date Date)
Checks To See If The Input Date's Month and Year Is Same As Stored Date.
bool IsLeapYear()
Returns True If HK_Year Is A Leap Year.
std::string MonthName()
Returns HK_Month's Name As String.
int HK_Year
Holds The Year Part Of The Date.
void Reset()
Resets Date To Today.
std::string ToSortable(std::string Separator)
Generate A Sortable String For Database.
bool SubtractDays(int Days)
Subtracts Days To This HK_Date.
bool IsBefore(HK_Date Date)
Checks To See If The Input Date Is Before The Stored Date.
void SetDay(int Days)
Sets Day Value, Doesn't Check If Its Valid.
std::string ToReadable(std::string Separator, int Mode)
Generate A Readable String.
int StartDayOfWeek()
Returns What Day Of The Week This HK_Date Month Starts.
bool AddDays(int Days)
Adds Days To This HK_Date.
bool IsEqualYear(HK_Date Date)
Checks To See If The Input Date's Year Is Same As Stored Date.
int HK_Day
Holds The Day Part Of The Date.
bool IsValid()
Checks If This HK_Date Contains A Valid Date.
int GetDay()
Returns Day Value.
std::string IntToMonth(int Month)
Returns The Selected Month Name As A String. Expects 1 - 12.
HK_Date()
The Default Constructor. Sets Date To Today.
bool IsValidDate(int Days, int Month, int Year)
Takes Day, Month And Year And Generates A Readable String.
bool IsEqual(HK_Date Date)
Checks To See If The Input Date Is Same As Stored Date.
bool ModifyDate(int Days, bool Operator)
Adds Or Subtracts Days From This HK_Date.
int DaysInMonth()
Returns The Number Of Days In HK_Month. LeapYear Is Checked.
bool SetDate(int Days, int Month, int Year)
Sets Day, Month, and Year.
bool IsAfter(HK_Date Date)
Checks To See If The Input Date Is After The Stored Date.
int GetYear()
Returns Year Value.
void SetYear(int Year)
Sets Year Value, Doesn't Check If Its Valid.
std::vector< std::string > SplitStrings(std::string In, std::string Split)
Splits In By Split And Returns A Vector With Data.
int MonthToInt(std::string Month)
Converts Month Name To An Int.