Version: 3.3.1
Loading...
Searching...
No Matches

#include <wx/datetime.h>

+ Inheritance diagram for wxDateTimeChristianHolidays:

Detailed Description

Holiday authority that returns holidays common to all Christian religions.

This includes:

  • Easter (moveable feast)
  • Christmas

Library:  wxBase
Category:  Data Structures
Since
3.3.0

Protected Member Functions

bool DoIsHoliday (const wxDateTime &dt) const override
 Override which returns true if provided date is Easter or Christmas.
 
size_t DoGetHolidaysInRange (const wxDateTime &dtStart, const wxDateTime &dtEnd, wxDateTimeArray &holidays) const override
 Override to determine the holidays within a date range.
 
- Protected Member Functions inherited from wxDateTimeUSCatholicFeasts
bool DoIsHoliday (const wxDateTime &dt) const override
 Override which returns true if provided date is a holy day of obligation.
 
size_t DoGetHolidaysInRange (const wxDateTime &dtStart, const wxDateTime &dtEnd, wxDateTimeArray &holidays) const override
 Override to determine the holy days of obligation within a date range.
 
- Protected Member Functions inherited from wxDateTimeHolidayAuthority

Additional Inherited Members

- Static Public Member Functions inherited from wxDateTimeUSCatholicFeasts
static wxDateTime GetEaster (int year)
 Returns the date for Easter for a given year.
 
static wxDateTime GetThursdayAscension (int year)
 Returns the date for Ascension for a given year.
 
static wxDateTime GetSundayAscension (int year)
 Returns the date for Ascension for a given year.
 
- Static Public Member Functions inherited from wxDateTimeHolidayAuthority
static bool IsHoliday (const wxDateTime &dt)
 Returns true if the given date is a holiday.
 
static size_t GetHolidaysInRange (const wxDateTime &dtStart, const wxDateTime &dtEnd, wxDateTimeArray &holidays)
 Fills the provided array with all holidays in the given range, returns the number of them.
 
static void ClearAllAuthorities ()
 Clears the list of holiday authorities.
 
static void AddAuthority (wxDateTimeHolidayAuthority *auth)
 Adds a new holiday authority.
 

Member Function Documentation

◆ DoGetHolidaysInRange()

size_t wxDateTimeChristianHolidays::DoGetHolidaysInRange ( const wxDateTime & dtStart,
const wxDateTime & dtEnd,
wxDateTimeArray & holidays ) const
overrideprotectedvirtual

Override to determine the holidays within a date range.

Implements wxDateTimeHolidayAuthority.

◆ DoIsHoliday()

bool wxDateTimeChristianHolidays::DoIsHoliday ( const wxDateTime & dt) const
overrideprotectedvirtual

Override which returns true if provided date is Easter or Christmas.

Implements wxDateTimeHolidayAuthority.