Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update calendar data #111

Merged
merged 2 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Calendar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This folder contains a calendar file in XML format.

## Table of contents

`CompanyY_2024.calendar`: A calendar file for a hypothetical company, `Company Y`, in XML format.
`TestCalendar_2024.calendar`: A test calendar XML file.

## Calendar file

Expand All @@ -17,9 +17,9 @@ Here's an example that uses the calendar. It assumes you've copied this file to
```python
from deephaven.calendar import add_calendar, calendar, calendar_names

add_calendar("/data/examples/Calendar/CompanyY_2024.calendar")
add_calendar("/data/examples/Calendar/TestCalendar_2024.calendar")

print(calendar_names())

company_y_cal_2024 = calendar("CompanyY_2024")
test_company_cal_2024 = calendar("TestCalendar_2024")
```
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<calendar>
<name>CompanyY_2024</name>
<name>TestCalendar_2024</name>
<timeZone>America/New_York</timeZone>
<language>en</language>
<country>US</country>
<firstValidDate>2024-01-01</firstValidDate>
<lastValidDate>2024-12-31</lastValidDate>
<description>
Company Y calendar for the year 2024.
Company Y uses two business periods instead of one.
Test calendar for the year 2024.
This calendar uses two business periods instead of one.
The periods are separated by a one hour lunch break.
This calendar file defines standard business hours, weekends, and holidays.
</description>
Expand Down
Loading