edu.stanford.nlp.time
Class SUTime.DurationWithMillis

java.lang.Object
  extended by edu.stanford.nlp.time.SUTime.Temporal
      extended by edu.stanford.nlp.time.SUTime.Duration
          extended by edu.stanford.nlp.time.SUTime.DurationWithMillis
All Implemented Interfaces:
FuzzyInterval.FuzzyComparable<SUTime.Duration>, java.lang.Cloneable, java.lang.Comparable<SUTime.Duration>
Enclosing class:
SUTime

public static class SUTime.DurationWithMillis
extends SUTime.Duration

Duration specified in terms of milliseconds


Field Summary
 
Fields inherited from class edu.stanford.nlp.time.SUTime.Temporal
approx, mod, timeLabel
 
Constructor Summary
SUTime.DurationWithMillis(long ms)
           
SUTime.DurationWithMillis(org.joda.time.ReadableDuration base)
           
SUTime.DurationWithMillis(SUTime.Duration d, org.joda.time.ReadableDuration base)
           
 
Method Summary
 SUTime.Duration add(SUTime.Duration d)
           
 SUTime.Duration divideBy(int m)
           
 org.joda.time.Duration getJodaTimeDuration()
           
 org.joda.time.Period getJodaTimePeriod()
           
 SUTime.Duration multiplyBy(int m)
           
 
Methods inherited from class edu.stanford.nlp.time.SUTime.Duration
compareTo, getDateTimeFields, getDuration, getDuration, getDuration, getInexactDuration, getInexactDuration, getPeriod, getRange, getTime, getTimexType, intersect, intersect, isComparable, isGrounded, makeInexact, max, min, resolve, subtract, toFormattedString, toTime, toTime
 
Methods inherited from class edu.stanford.nlp.time.SUTime.Temporal
addMod, addModApprox, getGranularity, getMod, getRange, getRange, getStandardTemporalType, getTfid, getTfidString, getTid, getTidString, getTimeLabel, getTimexAttributes, getTimexValue, includeTimexAltValue, isApprox, isRef, next, prev, resolve, setTimeZone, setTimeZone, toISOString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SUTime.DurationWithMillis

public SUTime.DurationWithMillis(long ms)

SUTime.DurationWithMillis

public SUTime.DurationWithMillis(org.joda.time.ReadableDuration base)

SUTime.DurationWithMillis

public SUTime.DurationWithMillis(SUTime.Duration d,
                                 org.joda.time.ReadableDuration base)
Method Detail

multiplyBy

public SUTime.Duration multiplyBy(int m)
Specified by:
multiplyBy in class SUTime.Duration

divideBy

public SUTime.Duration divideBy(int m)
Specified by:
divideBy in class SUTime.Duration

getJodaTimePeriod

public org.joda.time.Period getJodaTimePeriod()
Specified by:
getJodaTimePeriod in class SUTime.Duration

getJodaTimeDuration

public org.joda.time.Duration getJodaTimeDuration()
Specified by:
getJodaTimeDuration in class SUTime.Duration

add

public SUTime.Duration add(SUTime.Duration d)
Specified by:
add in class SUTime.Duration


Stanford NLP Group