Learn R Programming

splusTimeDate (version 2.5.8)

holiday.AllSaints: Holiday Generating Functions

Description

Generate specific holidays.

Usage

holiday.AllSaints(years)
holiday.Anzac(years)
holiday.Australia(years)
holiday.Bastille(years)
holiday.Canada(years)
holiday.Christmas(years)
holiday.Columbus(years)
holiday.Easter(years)
holiday.GoodFriday(years)
holiday.Independence(years)
holiday.Labor(years)
holiday.MLK(years)
holiday.May(years)
holiday.Memorial(years)
holiday.NewYears(years)
holiday.NYSE(years)
holiday.Presidents(years)
holiday.Remembrance(years)
holiday.StPatricks(years)
holiday.Thanksgiving(years)
holiday.Thanksgiving.Canada(years)
holiday.USFederal(years)
holiday.VE(years)
holiday.Veterans(years)
holiday.Victoria(years)

Value

returns a time/date object with the given holidays. They are not guaranteed to be in any particular order.

In 1971, many U.S. holidays were changed to fall on Mondays, or the holiday(s) began more recently. Because the holiday functions always return the modern definition for the holidays, the return values might be inaccurate for dates specified before 1971 or before the beginning date of the holidays. (The exception to that possible inaccuracy is the New York Stock Exchange (NYSE) holidays, which contains their stated holiday schedules as far back as 1885.)

Arguments

years

the years for which to generate holidays (for example, 1998:2005).

Details

holiday.AllSaints

All Saints Day: November 1st.

holiday.Anzac

Anzac Day: April 25th.

holiday.Australia

Australia Day: January 26th.

holiday.Bastille

Bastille Day: July 14th.

holiday.Canada

Canada Day: July 1st.

holiday.Christmas

Christmas Day: December 25th.

holiday.Columbus

Columbus Day: the 2nd Monday in October.

holiday.Easter

Easter according to the Roman Catholic tradition.

holiday.GoodFriday

Good Friday according to the Roman Catholic tradition.

holiday.Independence

U.S. Independence Day: July 4th.

holiday.Labor

U.S. Labor Day: the 1st Monday in September.

holiday.MLK

U.S. Martin Luther King Jr. Day: the 3rd Monday in January.

holiday.May

May Day, also known as Labour Day in some countries: May 1st.

holiday.Memorial

U.S. Memorial Day: the last Monday in May.

holiday.NewYears

New Years Day: January 1st.

holiday.NYSE

New York Stock Exchange holidays, 1885-present, according to the historical and current (as of 1998) schedule, not including special-event closure days or partial-day closures.

holiday.Presidents

U.S. Presidents Day: the 3rd Monday in February.

holiday.Remembrance

same as holiday.Veterans.

holiday.StPatricks

St. Patrick's Day: March 17th.

holiday.Thanksgiving

U.S. Thanksgiving Day: the 4th Thursday in November.

holiday.Thanksgiving.Canada

Canadian Thanksgiving Day: the 2nd Monday in October.

holiday.USFederal

all the U.S. Federal holidays, which are New Years, MLK, Presidents, Memorial, Independence, Labor, Columbus, Veterans, Thanksgiving, and Christmas, all moved to the nearest weekday if they fall on a weekend.

holiday.VE

Victory in Europe day: May 8th.

holiday.Veterans

November 11th, known as Veterans Day in the U.S. and Remembrance Day in some other countries.

holiday.Victoria

Canadian Victoria Day: the Monday on or preceeding the 24th of May.

References

The following web sites were used to obtain information on the dates of holidays: http://www.adfa.oz.au/~awm/anzacday/traditio.htm, http://www.effect.net.au/cuddlyk/myworld/history/ausday/ausday.html, http://fas.sfu.ca/canheritage/homepage/canid_hp/theme.htm, http://www.usis.usemb.se/Holidays/celebrate/intro.htm, http://www.gold.net/~cdwf/misc/easter.html, http://pages.citenet.net/users/ctmx1108/webcalend/web-cal-top.html http://www.smiley.cy.net/bdecie/Canada.html, http://shoga.wwa.com/~android7/holidays.htm, http://www.nyse.com

See Also

holiday.fixed, holiday.nearest.weekday, holidays.

Examples

Run this code
holiday.Christmas(1994:2005)

Run the code above in your browser using DataLab