Options
All
  • Public
  • Public/Protected
  • All
Menu

South-African calendar

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)
  • Election Days

Hierarchy

Index

Constructors

constructor

Properties

Protected _impl

_impl: Impl

Static impl

impl: Impl

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