RichInterval

final class RichInterval(val underlying: Interval) extends AnyVal with PimpedType[Interval]
trait PimpedType[Interval]
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def by(period: ReadablePeriod): List[DateTime]

Returns a collection containing every instance between the interval, period time apart.

Returns a collection containing every instance between the interval, period time apart.

scala> val start = DateTime.now()
start: org.joda.time.DateTime = 2014-11-27T00:24:54.714+01:00

scala> val end = start + 1.day
end: org.joda.time.DateTime = 2014-11-28T00:24:54.714+01:00

scala> start to end by 1.minute
res0: scala.collection.immutable.List[org.joda.time.DateTime] = List(2014-11-27T00:24:54.714+01:00, ...)

Concrete fields

val underlying: Interval