public static class SUTime.TimeWithRange extends SUTime.Time
approx, mod, timeLabel, uncertaintyGranularity
CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_COMPARATOR, LENGTH_ENDPOINTS_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
Constructor and Description |
---|
TimeWithRange(SUTime.Range range) |
TimeWithRange(SUTime.TimeWithRange t,
SUTime.Range range) |
Modifier and Type | Method and Description |
---|---|
SUTime.Time |
add(SUTime.Duration offset) |
SUTime.Duration |
getDuration() |
SUTime.Range |
getRange(int flags,
SUTime.Duration granularity) |
SUTime.Time |
intersect(SUTime.Time t) |
SUTime.Time |
resolve(SUTime.Time refTime,
int flags) |
SUTime.TimeWithRange |
setTimeZone(org.joda.time.DateTimeZone tz) |
String |
toFormattedString(int flags) |
closest, compareTo, contains, difference, distance, getGranularity, getInterval, getJodaTimeInstant, getJodaTimePartial, getTime, getTimexType, hasTime, intersect, intersect, isComparable, isGrounded, makeComposite, max, min, offset, reduceGranularityTo, subtract
addMod, addModApprox, getMod, getPeriod, getRange, getRange, getStandardTemporalType, getTfid, getTfidString, getTid, getTidString, getTimeLabel, getTimexAttributes, getTimexValue, getUncertaintyGranularity, includeTimexAltValue, isApprox, isRef, next, prev, resolve, setTimeZone, setTimeZone, toISOString, toString
public TimeWithRange(SUTime.TimeWithRange t, SUTime.Range range)
public TimeWithRange(SUTime.Range range)
public SUTime.TimeWithRange setTimeZone(org.joda.time.DateTimeZone tz)
setTimeZone
in class SUTime.Temporal
public SUTime.Duration getDuration()
getDuration
in class SUTime.Time
public SUTime.Range getRange(int flags, SUTime.Duration granularity)
getRange
in class SUTime.Time
public SUTime.Time add(SUTime.Duration offset)
add
in class SUTime.Time
public SUTime.Time intersect(SUTime.Time t)
intersect
in class SUTime.Time
public SUTime.Time resolve(SUTime.Time refTime, int flags)
resolve
in class SUTime.Time
public String toFormattedString(int flags)
toFormattedString
in class SUTime.Temporal