public static class SUTime.PartialTime 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 |
---|
PartialTime() |
PartialTime(org.joda.time.Partial base) |
PartialTime(SUTime.PartialTime pt) |
PartialTime(SUTime.StandardTemporalType temporalType,
org.joda.time.Partial base) |
PartialTime(SUTime.Time t,
org.joda.time.Partial p) |
closest, compareTo, contains, difference, distance, getGranularity, getInterval, getTime, intersect, intersect, isComparable, makeComposite, max, min, offset, subtract
addMod, addModApprox, getMod, getRange, getRange, getStandardTemporalType, getTfid, getTfidString, getTid, getTidString, getTimeLabel, getTimexAttributes, getTimexValue, getUncertaintyGranularity, includeTimexAltValue, isApprox, isRef, next, prev, resolve, setTimeZone, setTimeZone, toISOString, toString
public PartialTime(SUTime.Time t, org.joda.time.Partial p)
public PartialTime(SUTime.PartialTime pt)
public PartialTime(org.joda.time.Partial base)
public PartialTime(SUTime.StandardTemporalType temporalType, org.joda.time.Partial base)
public PartialTime()
public SUTime.PartialTime setTimeZone(org.joda.time.DateTimeZone tz)
setTimeZone
in class SUTime.Temporal
public org.joda.time.Instant getJodaTimeInstant()
getJodaTimeInstant
in class SUTime.Time
public org.joda.time.Partial getJodaTimePartial()
getJodaTimePartial
in class SUTime.Time
public boolean hasTime()
hasTime
in class SUTime.Time
public SUTime.TimexType getTimexType()
getTimexType
in class SUTime.Time
protected boolean appendDateFormats(org.joda.time.format.DateTimeFormatterBuilder builder, int flags)
protected boolean appendTimeFormats(org.joda.time.format.DateTimeFormatterBuilder builder, int flags)
protected org.joda.time.format.DateTimeFormatter getFormatter(int flags)
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 inputGranularity)
getRange
in class SUTime.Time
protected void withStandardFields()
public SUTime.PartialTime reduceGranularityTo(SUTime.Duration granularity)
reduceGranularityTo
in class SUTime.Time
public SUTime.PartialTime padMoreSpecificFields(SUTime.Duration granularity)
public java.lang.String toFormattedString(int flags)
toFormattedString
in class SUTime.Temporal
public SUTime.Time resolve(SUTime.Time ref, int flags)
resolve
in class SUTime.Time
public boolean isCompatible(SUTime.PartialTime time)
public static Pair<SUTime.PartialTime,SUTime.PartialTime> getCompatible(SUTime.PartialTime t1, SUTime.PartialTime t2)
public SUTime.Duration getPeriod()
getPeriod
in class SUTime.Temporal
public java.util.List<SUTime.Temporal> toList()
public SUTime.Time intersect(SUTime.Time t)
intersect
in class SUTime.Time
protected SUTime.PartialTime addSupported(org.joda.time.Period p, int scalar)
protected SUTime.PartialTime addUnsupported(org.joda.time.Period p, int scalar)
public SUTime.Time add(SUTime.Duration offset)
add
in class SUTime.Time