-
Notifications
You must be signed in to change notification settings - Fork 0
Large extensions #53
Copy link
Copy link
Open
Description
Current plan for extension
- Add guards for all comparisons like
mustBeBefore(forisBefore(with option to throw custom exception.-
Moment -
Time -
Weekday -
Date -
Month -
Year
-
- Extend list of precision value objects
-
Weekday(MONDAYtoSUNDAYlikeFRIDAY) -
Week(year and week like2024-18) -
CalendarWeek(1to53, independent of year like18) -
CalendarMonth(JANUARYtoDECEMBERlikeMAY)
-
- Add typed collection of value objects
-
Dates -
Weekdays -
Times -
Months -
Years
-
- Add time frame classes with methods to get all elements (for example all Dates in a
DateTimeFrame). Could even be a typed collection from above.-
TimeFrame -
DateTimeFrame -
MomentTimeFrame -
MonthTimeFrame -
YearTimeFrame
-
- New methods to get the start and end of a precision value object as moments. For example the start and end of a date in a time zone.
Ideas and notes
There are multiple topics I would like to work on at once. But there is only very little time so this is an overview to structure my thoughts:
- Extend list of precision value objects
Weekday(MONDAYtoSUNDAYlikeFRIDAY)Week(year and week like2024-18)CalendarWeek(1to53, independent of year like18)CalendarMonth(JANUARYtoDECEMBERlikeMAY)
- Add typed collection of value objects
- Dates
- Weekdays
- ... for all value objects
- Add time frame classes with methods to get all elements (for example all Dates in a
DateTimeFrame). Could even be a typed collection from above.TimeFrameDateTimeFrameMomentTimeFrame- ... perhaps others
- New methods to get the start and end of a precision value object as moments. For example the start and end of a date in a time zone.
- Add guards for all comparisons like
mustBeBefore(forisBefore(with option to throw custom exception.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels