public class IntervalWithTimeZone extends Object
Wraps a JodaTime Interval to retain timezone information. The API needs the given timezone information as a best guess to respond timeseries data in a proper manner. JodaTime stores time instants (having no timezone per se) along the interval, so timezone information is available once the timespan string has been parsed.
| Constructor and Description |
|---|
IntervalWithTimeZone(String timespan) |
| Modifier and Type | Method and Description |
|---|---|
org.joda.time.DateTimeZone |
getTimezone() |
org.joda.time.Interval |
toInterval() |
String |
toString() |
public IntervalWithTimeZone(String timespan)
timespan - the time interval in ISO8601 notation.IoParseException - if timespan is not a valid interval.Copyright © 2013–2017 52North Initiative for Geospatial Open Source Software GmbH. All rights reserved.