Skip to content

Add Holiday Helper Classes #7

@skybluesofa

Description

@skybluesofa

There are some events and holidays that span multiple months. Easter is a great example of this:

  • Earliest date is March 22
  • Latest date is April 25

Not only that, there are other events that are based upon the date of Easter,

  • Passover is 40 days after Easter
  • Dyngus Day is the day after Easter

I know there are other instances of stuff like this, too, but I can't think of them off the top of my head.

Instead of duplicating the functionality in both the March and April month classes, I was thinking about a group of helper classes.

However, this brings up something else: Refactoring the code heirarchy. Right now its:

Data\Month\En\Us\_monthname_

but should instead be:

Data\En\Us\Month\_monthname_

which would allow for these new helper classes:

Data\En\Us\Helpers\Easter
Data\En\Us\Helpers\SomeOtherHelper

Suggestions?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions