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

#include <wx/datetime.h>

Inheritance diagram for wxDateTimeUSCatholicFeasts:

Detailed Description

Holiday authority that returns Catholic holy days of obligation, as observed in the United States.

This includes:

  • Solemnity of Mary, Mother of God
  • Easter (moveable feast)
  • Ascension (moveable feast)
  • Assumption of the Blessed Virgin Mary
  • All Saints Day
  • Immaculate Conception of the Blessed Virgin Mary
  • Christmas

Library:  wxBase
Category:  Data Structures
Since
3.3.0

Static Public Member Functions

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.

Protected Member Functions

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.

Member Function Documentation

◆ DoGetHolidaysInRange()

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

Override to determine the holy days of obligation within a date range.

Implements wxDateTimeHolidayAuthority.

◆ DoIsHoliday()

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

Override which returns true if provided date is a holy day of obligation.

Implements wxDateTimeHolidayAuthority.

◆ GetEaster()

wxDateTime wxDateTimeUSCatholicFeasts::GetEaster ( int year)
static

Returns the date for Easter for a given year.

◆ GetSundayAscension()

wxDateTime wxDateTimeUSCatholicFeasts::GetSundayAscension ( int year)
static

Returns the date for Ascension for a given year.

This is the same as GetThursdayAscension(), but moved to the Sunday following the traditional Ascension that falls on a Thursday.

◆ GetThursdayAscension()

wxDateTime wxDateTimeUSCatholicFeasts::GetThursdayAscension ( int year)
static

Returns the date for Ascension for a given year.

Celebrated on the 40th day of Easter/ sixth Thursday after Easter Sunday.