Practical chapter 05 · independent challenge · 4 test cases per challenge
Time-based rules
Compare instants, durations, and optional interval ends without comparing unparsed text.
01Event inside a time windowCheck an instant in a range that includes the start and excludes the end.Solve challenge02Deadline with grace periodAdd configurable grace to a deadline and compare the received time.Solve challenge03All events before a deadlineCombine a non-empty list with a time predicate for every event.Solve challenge04Active time periodEvaluate a period with a required start and an optional end.Solve challenge