Options
All
  • Public
  • Public/Protected
  • All
Menu

Brazilian calendar

Banking holidays:

  • Saturdays
  • Sundays
  • New Year's Day, January 1st
  • Tiradentes's Day, April 21th
  • Labour Day, May 1st
  • Independence Day, September 7th
  • Nossa Sra. Aparecida Day, October 12th
  • All Souls Day, November 2nd
  • Republic Day, November 15th
  • Christmas, December 25th
  • Passion of Christ
  • Carnival
  • Corpus Christi

Holidays for the Bovespa stock exchange

  • Saturdays
  • Sundays
  • New Year's Day, January 1st
  • Sao Paulo City Day, January 25th
  • Tiradentes's Day, April 21th
  • Labour Day, May 1st
  • Revolution Day, July 9th
  • Independence Day, September 7th
  • Nossa Sra. Aparecida Day, October 12th
  • All Souls Day, November 2nd
  • Republic Day, November 15th
  • Black Consciousness Day, November 20th (since 2007)
  • Christmas Eve, December 24th
  • Christmas, December 25th
  • Passion of Christ
  • Carnival
  • Corpus Christi
  • the last business day of the year

test the correctness of the returned results is tested against a list of known holidays.

Hierarchy

Index

Constructors

constructor

  • Parameters

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

    Returns Brazil

Properties

Protected _impl

_impl: Impl

Static exchangeImpl

exchangeImpl: ExchangeImpl

Static settlementImpl

settlementImpl: SettlementImpl

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[]