Finance - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Finance : Date Arithmetic : Finance/Calendar

Finance

  

Calendar

  

create new calendar

 

Calling Sequence

Parameters

Description

Western-Style Calendars

Examples

Compatibility

Calling Sequence

Calendar(name)

Parameters

name

-

string or name; calendar type

Description

• 

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.

Western-Style Calendars

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

– 

Bratislava Stock Exchange

Budapest 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

• 

Holidays

– 

Saturdays

– 

Sundays

– 

Maundy Thursday

– 

Good Friday

– 

Easter Monday

– 

General Prayer Day, 25 days after Easter Monday

– 

Ascension

– 

Whit (Pentecost) Monday

– 

New Year's Day, January 1st

– 

Constitution Day, June 5th

– 

Christmas, December 25th

– 

Boxing Day, December 26th

• 

References

– 

Copenhagen Stock Exchange

Frankfurt Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st

– 

Good Friday

– 

Easter Monday

– 

Labour Day, May 1st

– 

Christmas Eve, December 24th

– 

Christmas, December 25th

– 

Christmas Holiday, December 26th

– 

New Year's Eve, December 31st

• 

References

– 

Frankfurt Stock Exchange

Helsinki Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st

– 

Epiphany, January 6th

– 

Good Friday

– 

Easter Monday

– 

Ascension Thursday

– 

Labour Day, May 1st

– 

Midsummer Eve (Friday between June 18-24)

– 

Independence Day, December 6th

– 

Christmas Eve, December 24th

– 

Christmas, December 25th

– 

Boxing Day, December 26th

• 

References

– 

Helsinki Stock Exchange

Johannesburg Securities Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st (possibly moved to Monday)

– 

Good Friday

– 

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)

– 

Christmas, December 25th

– 

Day of Goodwill, December 26th (possibly moved to Monday)

• 

References

– 

Johannesburg Securities Exchange

Milan Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st

– 

Good Friday

– 

Easter Monday

– 

Labour Day, May 1st

– 

Assumption, August 15th

– 

Christmas Eve, December 24th

– 

Christmas, December 25th

– 

St. Stephen, December 26th

– 

New Year's Eve, December 31st

• 

References

– 

Milan Stock Exchange

London Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st (possibly moved to Monday)

– 

Good Friday

– 

Easter Monday

– 

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)

• 

References

– 

London Stock Exchange

New York Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

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

– 

Good Friday

– 

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

• 

References

– 

New York Stock Exchange

Oslo Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

Holy Thursday

– 

Good Friday

– 

Easter Monday

– 

Ascension

– 

Whit(Pentecost) Monday

– 

New Year's Day, January 1st

– 

May Day, May 1st

– 

National Independence Day, May 17st

– 

Christmas, December 25th

– 

Boxing Day, December 26th

• 

References

– 

Oslo Stock Exchange

Prague Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st

– 

Easter Monday

– 

Labour Day, May 1st

– 

Liberation Day, May 8th

– 

SS. Cyril and Methodius, July 5th

– 

Jan Hus Day, July 6th

– 

Czech Statehood Day, September 28th

– 

Independence Day, October 28th

– 

Struggle for Freedom and Democracy Day, November 17th

– 

Christmas Eve, December 24th

– 

Christmas, December 25th

– 

St. Stephen, December 26th

• 

References

– 

Prague Stock Exchange

Stockholm Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

Good Friday

– 

Easter Monday

– 

Ascension

– 

Whit(Pentecost) Monday

– 

Midsummer Eve (Friday between June 18-24)

– 

New Year's Day, January 1st

– 

Epiphany, January 6th

– 

May Day, May 1st

– 

National Day, June 6th

– 

Christmas Eve, December 24th

– 

Christmas Day, December 25th

– 

Boxing Day, December 26th

– 

New Year's Eve, December 31th

• 

References

– 

Stockholm Stock Exchange

Sydney Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st

– 

Australia Day, January 26th (possibly moved to Monday)

– 

Good Friday

– 

Easter 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)

– 

Boxing Day, December 26th (possibly moved to Monday or Tuesday)

• 

References

– 

Sydney Stock Exchange

Tokyo Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st

– 

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

• 

References

– 

Tokyo Stock Exchange

Toronto Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st (possibly moved to Monday)

– 

Family Day, third Monday of February

– 

Good Friday

– 

Easter Monday

– 

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

– 

Christmas, December 25th (possibly moved to Monday or Tuesday)

– 

Boxing Day, December 26th (possibly moved to Monday or Tuesday)

• 

References

– 

Toronto Stock Exchange

United Kingdom General

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st (possibly moved to Monday)

– 

Good Friday

– 

Easter Monday

– 

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)

• 

References

– 

United Kingdom General

United States Bond Market

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st (possibly moved to Monday if it falls on Sunday)

– 

Martin Luther King's birthday, third Monday in January

– 

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

– 

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)

– 

Thanksgiving Day, fourth Thursday in November

– 

Christmas, December 25th (moved to Monday if it falls on Sunday or Friday if it falls on Saturday)

• 

References

– 

United States Bond Market

United States General

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st (possibly moved to Monday if it falls on Sunday, or to Friday if it falls on Saturday)

– 

Martin Luther King's birthday, third Monday in January

– 

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 to Friday if it falls on Saturday)

– 

Labor Day, first Monday in September

– 

Columbus Day, second Monday in October

– 

Veterans' Day, November 11th (moved to Monday if it falls on Sunday or to Friday if it falls on Saturday)

– 

Thanksgiving Day, fourth Thursday in November

– 

Christmas, December 25th (moved to Monday if it falls on Sunday or to Friday if it falls on Saturday)

• 

References

– 

United States General

Warsaw Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

Easter Monday

– 

Corpus Christi

– 

New Year's Day, January 1st

– 

May Day, May 1st

– 

Constitution Day, May 3rd

– 

Assumption of the Blessed Virgin Mary, August 15th

– 

All Saints Day, November 1st

– 

Independence Day, November 11th

– 

Christmas, December 25th

– 

2nd Day of Christmas, December 26th

• 

References

– 

Warsaw Stock Exchange

Wellington Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

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

– 

Good Friday

– 

Easter Monday

– 

ANZAC Day, April 25th

– 

Queen's Birthday, first Monday in June

– 

Labour Day, fourth Monday in October

– 

Christmas, December 25th (possibly moved to Monday or Tuesday)

– 

Boxing Day, December 26th (possibly moved to Monday or Tuesday)

• 

References

– 

Wellington Stock Exchange

Zurich Stock Exchange

• 

Holidays

– 

Saturdays

– 

Sundays

– 

New Year's Day, January 1st

– 

Berchtoldstag, January 2nd

– 

Good Friday

– 

Easter Monday

– 

Ascension Day

– 

Whit Monday

– 

Labour Day, May 1st

– 

National Day, August 1st

– 

Christmas, December 25th

– 

St. Stephen's Day, December 26th

• 

References

– 

Zurich Stock Exchange

Examples

withFinance:

Create a sample calendar and modify it.

CCalendarNewYork:

IsHolidayDecember 26, 2006,C

false

(1)

IsBusinessDayDecember 26, 2006,C

true

(2)

AdvanceDateDecember 24, 2006,5,Days,C,output=formatted

January 2, 2007

(3)

Here is a Beijing calendar for the year 2004.

C2CalendarSimple:

NewYearDayseqAdvanceDateJanuary 1, 2004,i,i=0..6:

SpringFestivalseqAdvanceDateJanuary 22, 2004,i,i=0..6:

LaborDayseqAdvanceDateMay 1, 2004,i,i=0..6:

NationalDayseqAdvanceDateOctober 1, 2004,i,i=0..6:

AddHolidayC2,NewYearDay,SpringFestival,LaborDay,NationalDay:

AdjustDateJanuary 23, 2004,C2,convention=Following,output=formatted

January 29, 2004

(4)

AdjustDateJanuary 23, 2004,C2,convention=Preceding,output=formatted

January 21, 2004

(5)

This calendar can be joined with the New York calendar.

C3JoinBusinessDaysC,C2

C3:=moduleend module

(6)

C4JoinHolidaysC,C2

C4:=moduleend module

(7)

IsHolidayJanuary 23, 2004,C

false

(8)

IsHolidayJanuary 23, 2004,C2

true

(9)

IsHolidayJanuary 23, 2004,C3

false

(10)

IsHolidayJanuary 23, 2004,C4

true

(11)

Compatibility

• 

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

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam