Skip to content

New constraints: earlyStart, lateStart, earlyFinish, lateFinish #2

@hughgrigg

Description

@hughgrigg

It might be useful to have some business time constraints along the lines of earlyStart, lateStart, earlyFinish, lateFinish.

These would take an exact timestamp, i.e. for a single date and time only, and act as a constraint accordingly.

E.g. new earlyFinish('2019-07-03 13:00') rejects any time after 13:00 but only on 2019-07-03. Similar logic for the other three.

This would make it more natural to add single adjustments to start and finish times.

Currently you'd have to do something like new NotConstraint(new Dates('2019-07-03').andAlso(new BetweenHoursOfDay('13', '00'))) which works OK but is not intuitive at all.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions