Skip to content

Observe New Year's Day on Monday 3 January in the Toronto calendar when 1 January is a Saturday - #416

Open
wavebyrd wants to merge 1 commit into
domokane:masterfrom
wavebyrd:fix/toronto-new-year-observed
Open

wavebyrd wants to merge 1 commit into
domokane:masterfrom
wavebyrd:fix/toronto-new-year-observed

Conversation

@wavebyrd

Copy link
Copy Markdown
Contributor

When 1 January falls on a Saturday, Canadian banks and the TSX close on Monday 3 January (e.g. 2011, 2022), but the Toronto calendar only moves New Year's Day to Monday 2 January when it falls on a Sunday. The CANADA calendar already has the 3 January rule, and Toronto already does the same Saturday-to-Monday shift for Canada Day.

This adds the missing rule, a unit test and the two new lines in the calendar golden file (2022 and 2028). Unit and calendar regression tests pass.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant