Options
All
  • Public
  • Public/Protected
  • All
Menu

Canadian calendar

Banking holidays (data from http://www.bankofcanada.ca/en/about/holiday.html):

  • Saturdays
  • Sundays
  • New Year's Day, January 1st (possibly moved to Monday)
  • Family Day, third Monday of February (since 2008)
  • Good Friday
  • 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 (possibly moved to Monday)
  • Christmas, December 25th (possibly moved to Monday or Tuesday)
  • Boxing Day, December 26th (possibly moved to Monday or Tuesday)

Holidays for the Toronto stock exchange (data from http://www.tsx.com/en/about_tsx/market_hours.html):

  • Saturdays
  • Sundays
  • New Year's Day, January 1st (possibly moved to Monday)
  • Family Day, third Monday of February (since 2008)
  • Good Friday
  • 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
  • Christmas, December 25th (possibly moved to Monday or Tuesday)
  • Boxing Day, December 26th (possibly moved to Monday or Tuesday)

Hierarchy

Index

Constructors

constructor

  • Parameters

    • Default value market: Market = Canada.Market.Settlement

    Returns Canada

Properties

Protected _impl

_impl: Impl

Static settlementImpl

settlementImpl: SettlementImpl

Static tsxImpl

tsxImpl: TsxImpl

Accessors

isDisposed

  • get isDisposed(): boolean

Methods

addHoliday

  • addHoliday(d: Date): void
  • Parameters

    • d: Date

    Returns void

adjust

advance1

advance2

  • Parameters

    Returns Date

businessDaysBetween

  • businessDaysBetween(from: Date, to: Date, includeFirst?: boolean, includeLast?: boolean): Day
  • Parameters

    • from: Date
    • to: Date
    • Default value includeFirst: boolean = true
    • Default value includeLast: boolean = false

    Returns Day

dispose

  • dispose(): void
  • Returns void

empty

  • empty(): boolean
  • Returns boolean

endOfMonth

  • endOfMonth(d: Date): Date
  • Parameters

    • d: Date

    Returns Date

isBusinessDay

  • isBusinessDay(d: Date): boolean
  • Parameters

    • d: Date

    Returns boolean

isEndOfMonth

  • isEndOfMonth(d: Date): boolean
  • Parameters

    • d: Date

    Returns boolean

isHoliday

  • isHoliday(d: Date): boolean
  • Parameters

    • d: Date

    Returns boolean

isWeekend

name

  • name(): string
  • Returns string

removeHoliday

  • removeHoliday(d: Date): void
  • Parameters

    • d: Date

    Returns void

Static equal

  • Parameters

    Returns boolean

Static holidayList

  • holidayList(calendar: Calendar, from: Date, to: Date, includeWeekEnds?: boolean): Date[]
  • Parameters

    • calendar: Calendar
    • from: Date
    • to: Date
    • Default value includeWeekEnds: boolean = false

    Returns Date[]