Skip to content

Add weekend? method as complement to weekday?#239

Open
matthewlawrenceklein wants to merge 1 commit into
bokmann:developfrom
matthewlawrenceklein:feat/weekend-extension
Open

Add weekend? method as complement to weekday?#239
matthewlawrenceklein wants to merge 1 commit into
bokmann:developfrom
matthewlawrenceklein:feat/weekend-extension

Conversation

@matthewlawrenceklein

Copy link
Copy Markdown

Add a logical complementary time extension so that both weekday? and weekend? return expected boolean values.

Of note

  • This change respects Config.work_week but is not affected by holidays (intentional, mirrors weekday? behavior)
  • Tests added for Time, Date, and TimeWithZone in both Eastern and UTC contexts

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