edu.stanford.nlp.time
Class SUTime.IsoDate
java.lang.Object
edu.stanford.nlp.time.SUTime.Temporal
edu.stanford.nlp.time.SUTime.Time
edu.stanford.nlp.time.SUTime.PartialTime
edu.stanford.nlp.time.SUTime.IsoDate
- All Implemented Interfaces:
- FuzzyInterval.FuzzyComparable<SUTime.Time>, HasInterval<SUTime.Time>, java.lang.Cloneable, java.lang.Comparable<SUTime.Time>
- Enclosing class:
- SUTime
public static class SUTime.IsoDate
- extends SUTime.PartialTime
|
Field Summary |
int |
day
Day of Month |
int |
era
Era: BC is era 0, AD is era 1, Unknown is -1 |
int |
month
Month of Year |
int |
year
Year of Era |
|
Constructor Summary |
SUTime.IsoDate(int y,
int m,
int d)
|
SUTime.IsoDate(java.lang.Number y,
java.lang.Number m,
java.lang.Number d)
|
SUTime.IsoDate(java.lang.Number y,
java.lang.Number m,
java.lang.Number d,
java.lang.Number era,
java.lang.Boolean yearEraAdjustNeeded)
|
SUTime.IsoDate(java.lang.String y,
java.lang.String m,
java.lang.String d)
|
| Methods inherited from class edu.stanford.nlp.time.SUTime.PartialTime |
add, addSupported, addUnsupported, appendDateFormats, appendTimeFormats, getDuration, getFormatter, getJodaTimeInstant, getJodaTimePartial, getPeriod, getRange, hasTime, intersect, isCompatible, isGrounded, padMoreSpecificFields, resolve, setTimeZone, toFormattedString, toList, withStandardFields |
| Methods inherited from class edu.stanford.nlp.time.SUTime.Time |
closest, compareTo, contains, difference, distance, getGranularity, getInterval, getTime, getTimexType, intersect, intersect, isComparable, makeComposite, max, min, offset, subtract |
| Methods inherited from class edu.stanford.nlp.time.SUTime.Temporal |
addMod, addModApprox, getMod, getRange, getRange, getStandardTemporalType, getTfid, getTfidString, getTid, getTidString, getTimeLabel, getTimexAttributes, getTimexValue, includeTimexAltValue, isApprox, isRef, next, prev, resolve, setTimeZone, toISOString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
era
public int era
- Era: BC is era 0, AD is era 1, Unknown is -1
year
public int year
- Year of Era
month
public int month
- Month of Year
day
public int day
- Day of Month
SUTime.IsoDate
public SUTime.IsoDate(int y,
int m,
int d)
SUTime.IsoDate
public SUTime.IsoDate(java.lang.Number y,
java.lang.Number m,
java.lang.Number d)
SUTime.IsoDate
public SUTime.IsoDate(java.lang.Number y,
java.lang.Number m,
java.lang.Number d,
java.lang.Number era,
java.lang.Boolean yearEraAdjustNeeded)
SUTime.IsoDate
public SUTime.IsoDate(java.lang.String y,
java.lang.String m,
java.lang.String d)
toString
public java.lang.String toString()
- Overrides:
toString in class SUTime.Temporal
getYear
public int getYear()
setYear
public void setYear(int y)
getMonth
public int getMonth()
setMonth
public void setMonth(int m)
getDay
public int getDay()
setDay
public void setDay(int d)
setDate
public void setDate(int y,
int m,
int d)
Stanford NLP Group