com.github.nscala_time.time.RichInterval
final class RichInterval(underlying: Interval) extends AnyVal
Attributes
-
Graph
-
-
Supertypes
-
class AnyVal
trait Matchable
class Any
Members list
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, ...)
Attributes