Skip to contents

Returns a holiday calendar for the Toronto Stock Exchange.

Usage

holidayTSX(year = getRmetricsOptions("currentYear"))

Arguments

year

an integer value or vector of years, formatted as YYYY.

Value

an object of class "timeDate"

Examples

## holidayTSX -
   holidayTSX()
#> Toronto
#>   2023-01-01   2023-02-20   2023-04-07   2023-05-22   2023-07-01   2023-08-07 
#> [2023-01-02] [2023-02-20] [2023-04-07] [2023-05-22] [2023-07-03] [2023-08-07] 
#>   2023-09-04   2023-10-09   2023-12-25   2023-12-26 
#> [2023-09-04] [2023-10-09] [2023-12-25] [2023-12-26] 
   holidayTSX(2008:2010)
#> Toronto
#>   2008-01-01   2008-02-18   2008-02-18   2008-02-18   2008-03-21   2008-05-19 
#> [2008-01-01] [2008-02-18] [2008-02-18] [2008-02-18] [2008-03-21] [2008-05-19] 
#>   2008-07-01   2008-08-04   2008-09-01   2008-10-13   2008-12-25   2008-12-26 
#> [2008-07-01] [2008-08-04] [2008-09-01] [2008-10-13] [2008-12-25] [2008-12-26] 
#>   2009-01-01   2009-02-16   2009-02-16   2009-02-16   2009-04-10   2009-05-18 
#> [2009-01-01] [2009-02-16] [2009-02-16] [2009-02-16] [2009-04-10] [2009-05-18] 
#>   2009-07-01   2009-08-03   2009-09-07   2009-10-12   2009-12-25   2009-12-26 
#> [2009-07-01] [2009-08-03] [2009-09-07] [2009-10-12] [2009-12-25] [2009-12-28] 
#>   2010-01-01   2010-02-15   2010-02-15   2010-02-15   2010-04-02   2010-05-24 
#> [2010-01-01] [2010-02-15] [2010-02-15] [2010-02-15] [2010-04-02] [2010-05-24] 
#>   2010-07-01   2010-08-02   2010-09-06   2010-10-11   2010-12-25   2010-12-26 
#> [2010-07-01] [2010-08-02] [2010-09-06] [2010-10-11] [2010-12-27] [2010-12-27]