includes method

bool includes(
  1. DateTime time
)

Implementation

bool includes(DateTime time) => begin.isBefore(time) && end.isAfter(time);