You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to #83 and #79 the end of the interval is included when splitting by period. I guess there should be a way in this library to cover not only the inclusive case but also the exclusive.
To cover the exclusive case I suggest one of the following:
// RichReadableInstant.scala// ...defuntil(other: ReadableInstant):Interval= to(other).withEnd(other.toInstant.minus(1L))
// ...// User's codevalinclusive= start to stop by 5.minutes
valexclusive= start until stop by 5.minutes
The problem here is that interval contains interval.end is false.
Hi!
According to #83 and #79 the end of the interval is included when splitting by period. I guess there should be a way in this library to cover not only the inclusive case but also the exclusive.
To cover the exclusive case I suggest one of the following:
until
to RichReadableInstant.scalaThe problem here is that
interval contains interval.end
isfalse
.exclusiveBy
to RichInterval.scalaI will be glad to create a PR with one of the proposed or any other solutions.
The text was updated successfully, but these errors were encountered: