public static class SUTime.GroundedTime extends SUTime.Time
approx, mod, timeLabel, uncertaintyGranularity
CONTAINS_FIRST_ENDPOINTS_COMPARATOR, ENDPOINTS_COMPARATOR, LENGTH_ENDPOINTS_COMPARATOR, LENGTH_GT_COMPARATOR, LENGTH_LT_COMPARATOR, NESTED_FIRST_ENDPOINTS_COMPARATOR
Constructor and Description |
---|
GroundedTime(org.joda.time.ReadableInstant base) |
GroundedTime(SUTime.Time p,
org.joda.time.ReadableInstant base) |
Modifier and Type | Method and Description |
---|---|
SUTime.Time |
add(SUTime.Duration offset) |
SUTime.Duration |
getDuration() |
org.joda.time.Instant |
getJodaTimeInstant() |
org.joda.time.Partial |
getJodaTimePartial() |
SUTime.Range |
getRange(int flags,
SUTime.Duration granularity) |
boolean |
hasTime() |
SUTime.Temporal |
intersect(SUTime.Temporal other) |
SUTime.Time |
intersect(SUTime.Time t) |
boolean |
isGrounded() |
SUTime.Time |
resolve(SUTime.Time refTime,
int flags) |
SUTime.GroundedTime |
setTimeZone(org.joda.time.DateTimeZone tz) |
java.lang.String |
toFormattedString(int flags) |
closest, compareTo, contains, difference, distance, getGranularity, getInterval, getTime, getTimexType, intersect, isComparable, 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 GroundedTime(SUTime.Time p, org.joda.time.ReadableInstant base)
public GroundedTime(org.joda.time.ReadableInstant base)
public SUTime.GroundedTime setTimeZone(org.joda.time.DateTimeZone tz)
setTimeZone
in class SUTime.Temporal
public boolean hasTime()
hasTime
in class SUTime.Time
public boolean isGrounded()
isGrounded
in class SUTime.Time
public SUTime.Duration getDuration()
getDuration
in class SUTime.Time
public SUTime.Range getRange(int flags, SUTime.Duration granularity)
getRange
in class SUTime.Time
public java.lang.String toFormattedString(int flags)
toFormattedString
in class SUTime.Temporal
public SUTime.Time resolve(SUTime.Time refTime, int flags)
resolve
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.Temporal intersect(SUTime.Temporal other)
intersect
in class SUTime.Time
public org.joda.time.Instant getJodaTimeInstant()
getJodaTimeInstant
in class SUTime.Time
public org.joda.time.Partial getJodaTimePartial()
getJodaTimePartial
in class SUTime.Time