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

feat: Add support for 'L' flag in list (DOM) #7

Merged
merged 8 commits into from
Oct 25, 2024

Conversation

Kniggebrot
Copy link

To allow using it with other days as well. The position should be unimportant.

Multiple L flags can be used in DOM and DOW, and combined with other options.

To allow using it with other days as well. The position should be unimportant.
To ensure it works as intended in combination with other days
Allows to set multiple 'L', and other days of months.
Early return with field instead of big if Block
Instead of looping the day directly in the function,
use functions to find the days fitting for the current month,
regarding 'L' and 'W' flags.
This allows us to set multiple 'L' flags in DOM an DOW, but it may require more (do_next) loops for calculating the next date, as find_next_day may only advance to the next month at most.
Combining L flags and other in DOM and DOW, offsets with L in DOW
@Kniggebrot Kniggebrot merged commit 7386e9b into master Oct 25, 2024
1 check passed
@Kniggebrot Kniggebrot deleted the feature/l-flag-list branch October 25, 2024 15:53
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