Finance
Calendar
create new calendar
Calling Sequence
Parameters
Description
Western-Style Calendars
Examples
Compatibility
Calendar(name)
name
-
string or name; calendar type
The Calendar command creates a calendar of the specified type and returns a module representing the new calendar. This data structure can be manipulated using the AddHoliday, JoinBusinessDays, JoinHolidays, and RemoveHoliday commands, and can also be used as a parameter to other commands from the Finance package.
The parameter name is the type of the calendar. At present only Western-style calendars are supported. This includes Bratislava, Budapest, Copenhagen, Frankfurt, Helsinki, Milan, Johannesburg, London, Oslo, Prague, Stockholm, Sydney, Tokyo, Toronto, NewYork, Warsaw, Wellington and Zurich.
In addition, two special calendars can be created: Null and Simple. Holidays in the Simple calendar are Saturdays, Sundays, and January 1st. The Null calendar does not have any holidays. Other calendars can be constructed using Null or Simple calendars as a base.
Bratislava Stock Exchange
Holidays
Saturdays
Sundays
New Year's Day, January 1st
Epiphany, January 6th
Good Friday
Easter Monday
May Day, May 1st
Liberation of the Republic, May 8th
SS. Cyril and Methodius, July 5th
Slovak National Uprising, August 29th
Constitution of the Slovak Republic, September 1st
Our Lady of the Seven Sorrows, September 15th
All Saints Day, November 1st
Freedom and Democracy of the Slovak Republic, November 17th
Christmas Eve, December 24th
Christmas, December 25th
St. Stephen, December 26th
References
Budapest Stock Exchange
Copenhagen Stock Exchange
Maundy Thursday
General Prayer Day, 25 days after Easter Monday
Ascension
Whit (Pentecost) Monday
Constitution Day, June 5th
Boxing Day, December 26th
Frankfurt Stock Exchange
Labour Day, May 1st
Christmas Holiday, December 26th
New Year's Eve, December 31st
Helsinki Stock Exchange
Ascension Thursday
Midsummer Eve (Friday between June 18-24)
Independence Day, December 6th
Johannesburg Securities Exchange
New Year's Day, January 1st (possibly moved to Monday)
Family Day, Easter Monday
Human Rights Day, March 21st (possibly moved to Monday)
Freedom Day, April 27th (possibly moved to Monday)
Workers Day, May 1st (possibly moved to Monday)
Youth Day, June 16th (possibly moved to Monday)
National Women's Day, August 9th (possibly moved to Monday)
Heritage Day, September 24th (possibly moved to Monday)
Day of Reconciliation, December 16th (possibly moved to Monday)
Day of Goodwill, December 26th (possibly moved to Monday)
Milan Stock Exchange
Assumption, August 15th
London Stock Exchange
Early May Bank Holiday, first Monday of May
Spring Bank Holiday, last Monday of May
Summer Bank Holiday, last Monday of August
Christmas Day, December 25th (possibly moved to Monday or Tuesday)
Boxing Day, December 26th (possibly moved to Monday or Tuesday)
New York Stock Exchange
New Year's Day, January 1st (possibly moved to Monday if it falls on Sunday)
Martin Luther King's birthday, third Monday in January (since 1998)
Presidents' Day (a.k.a. Washington's birthday), third Monday in February
Memorial Day, last Monday in May
Independence Day, July 4th (moved to Monday if it falls on Sunday or Friday if it falls on Saturday)
Labor Day, first Monday in September
Thanksgiving Day, fourth Thursday in November
Presidential election day, first Tuesday in November of election years (until 1980)
Christmas, December 25th (moved to Monday if it falls on Sunday or Friday if it falls on Saturday)
Special historic closings
Oslo Stock Exchange
Holy Thursday
Whit(Pentecost) Monday
National Independence Day, May 17st
Prague Stock Exchange
Liberation Day, May 8th
Jan Hus Day, July 6th
Czech Statehood Day, September 28th
Independence Day, October 28th
Struggle for Freedom and Democracy Day, November 17th
Stockholm Stock Exchange
National Day, June 6th
Christmas Day, December 25th
New Year's Eve, December 31th
Sydney Stock Exchange
Australia Day, January 26th (possibly moved to Monday)
ANZAC Day, April 25th (possibly moved to Monday)
Queen's Birthday, second Monday in June
Bank Holiday, first Monday in August
Labour Day, first Monday in October
Christmas, December 25th (possibly moved to Monday or Tuesday)
Tokyo Stock Exchange
Bank Holiday, January 2nd
Bank Holiday, January 3rd
Coming of Age Day, 2nd Monday in January
National Foundation Day, February 11th
Vernal Equinox
Greenery Day, April 29th
Constitution Memorial Day, May 3rd
Holiday for a Nation, May 4th
Children's Day, May 5th
Marine Day, 3rd Monday in July
Respect for the Aged Day, third Monday in September
Autumnal Equinox
Health and Sports Day, second Monday in October
National Culture Day, November 3rd
Labor Thanksgiving Day, November 23rd
Emperor's Birthday, December 23rd
Bank Holiday, December 31st
Toronto Stock Exchange
Family Day, third Monday of February
Victoria Day, The Monday on or preceding May 24th
Canada Day, July 1st (possibly moved to Monday)
Provincial Holiday, first Monday of August
Labour Day, first Monday of September
Thanksgiving Day, second Monday of October
Remembrance Day, November 11th
United Kingdom General
Spring Bank Holiday, last Monday of May.
United States Bond Market
Martin Luther King's birthday, third Monday in January
Columbus Day, second Monday in October
Veterans' Day, November 11th (moved to Monday if it falls on Sunday or Friday if it falls on Saturday)
United States General
New Year's Day, January 1st (possibly moved to Monday if it falls on Sunday, or to Friday if it falls on Saturday)
Independence Day, July 4th (moved to Monday if it falls on Sunday or to Friday if it falls on Saturday)
Veterans' Day, November 11th (moved to Monday if it falls on Sunday or to Friday if it falls on Saturday)
Christmas, December 25th (moved to Monday if it falls on Sunday or to Friday if it falls on Saturday)
Warsaw Stock Exchange
Corpus Christi
Constitution Day, May 3rd
Assumption of the Blessed Virgin Mary, August 15th
Independence Day, November 11th
2nd Day of Christmas, December 26th
Wellington Stock Exchange
New Year's Day, January 1st (possibly moved to Monday or Tuesday)
Day after New Year's Day, January 2nd (possibly moved to Monday or Tuesday)
Anniversary Day, Monday nearest January 22nd
Waitangi Day, February 6th
ANZAC Day, April 25th
Queen's Birthday, first Monday in June
Labour Day, fourth Monday in October
Zurich Stock Exchange
Berchtoldstag, January 2nd
Ascension Day
Whit Monday
National Day, August 1st
St. Stephen's Day, December 26th
with⁡Finance:
Create a sample calendar and modify it.
C≔Calendar⁡NewYork:
IsHoliday⁡December 26, 2006,C
false
IsBusinessDay⁡December 26, 2006,C
true
AdvanceDate⁡December 24, 2006,5,Days,C,output=formatted
January 2, 2007
Here is a Beijing calendar for the year 2004.
C2≔Calendar⁡Simple:
NewYearDay≔seq⁡AdvanceDate⁡January 1, 2004,i,i=0..6:
SpringFestival≔seq⁡AdvanceDate⁡January 22, 2004,i,i=0..6:
LaborDay≔seq⁡AdvanceDate⁡May 1, 2004,i,i=0..6:
NationalDay≔seq⁡AdvanceDate⁡October 1, 2004,i,i=0..6:
AddHoliday⁡C2,NewYearDay,SpringFestival,LaborDay,NationalDay:
AdjustDate⁡January 23, 2004,C2,convention=Following,output=formatted
January 29, 2004
AdjustDate⁡January 23, 2004,C2,convention=Preceding,output=formatted
January 21, 2004
This calendar can be joined with the New York calendar.
C3≔JoinBusinessDays⁡C,C2
C3≔moduleend module
C4≔JoinHolidays⁡C,C2
C4≔moduleend module
IsHoliday⁡January 23, 2004,C
IsHoliday⁡January 23, 2004,C2
IsHoliday⁡January 23, 2004,C3
IsHoliday⁡January 23, 2004,C4
The Finance[Calendar] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Finance[AddHoliday]
Finance[AdjustDate]
Finance[AdvanceDate]
Finance[Calendars]
Finance[IsBusinessDay]
Finance[IsEndOfMonth]
Finance[IsHoliday]
Finance[JoinBusinessDays]
Finance[JoinHolidays]
Finance[RemoveHoliday]
Download Help Document