Returns true if this occurs before other.
true
other
bool occursBefore(Period other) => end.isBefore(other.start);