FA-76874 / Calendar recurrence rules / Member archive
Monthly BYMONTHDAY expansion with negative and invalid days: negative day · case 04
BYMONTHDAY=-1 produces the second-to-last day of each month.
Case contract
FREQ=MONTHLY with a BYMONTHDAY list. Positive values count from the first day, negative values from the last day (-1 is the last day). A value that does not exist in a month is skipped for that month, never clamped. Months step by interval from the dtstart month; instances before dtstart are dropped; coinciding values yield one instance. Return the first count ISO dates in chronological order.
Why this case matters
Recurring calendar series are expanded into concrete instances for display, reminders and conflict checks.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| negative beyond month | ["2023-03-01", "2023-05-01", "2023-07-01", "2023-08-01"] | ["2023-03-02", "2023-04-01", "2023-05-02", "2023-06-01"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗