Modifier and Type | Method and Description |
---|---|
Interval |
to(LocalDateTime end)
Creates an
Interval from the current start time until the given end time. |
Interval |
withLength(TemporalAmount amount)
Creates a new
Interval from the current start time adding the given TemporalAmount to it. |
public Interval to(LocalDateTime end)
Interval
from the current start time until the given end time.end
- must not be null and after the current start time or equal to it.public Interval withLength(TemporalAmount amount)
Interval
from the current start time adding the given TemporalAmount
to it.amount
- must not be null.Duration
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.