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

Add argument to TruncateNewCalendarStatements #235

Open
tisseo-deploy opened this issue May 3, 2024 · 1 comment
Open

Add argument to TruncateNewCalendarStatements #235

tisseo-deploy opened this issue May 3, 2024 · 1 comment

Comments

@tisseo-deploy
Copy link

Summary:

GTFS Transformer: Add arguments to TruncateNewCalendarStatements in order to customize the truncating interval in days, months, or years.

Expected behavior:

The two arguments are calendar_field (day, month, or years) and calendar_amount.
Add the amount to the date, but avoid using Calendar.roll as it can result in strange behavior at the end of the year or end of the month, depending on the field argument.
Don't alter the default behavior (1 month)

@tisseo-deploy
Copy link
Author

We will submit a pull request shortly if the team approves.

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

No branches or pull requests

1 participant