|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gedcomx.date.GedcomxDate
org.gedcomx.date.GedcomxDateDuration
public class GedcomxDateDuration
The duration between two simple dates
| Constructor Summary | |
|---|---|
GedcomxDateDuration(String str)
Create a new duration from the formal string |
|
| Method Summary | |
|---|---|
Integer |
getDays()
Get the days |
Integer |
getHours()
Get the hours |
Integer |
getMinutes()
Get the minutes |
Integer |
getMonths()
Get the months |
Integer |
getSeconds()
Get the seconds |
GedcomxDateType |
getType()
The type of this date |
Integer |
getYears()
Get the years |
boolean |
isApproximate()
A Duration is NEVER Approximate |
String |
toFormalString()
The formal string representation of the duration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GedcomxDateDuration(String str)
str - The formal duration string| Method Detail |
|---|
public GedcomxDateType getType()
getType in class GedcomxDatepublic boolean isApproximate()
isApproximate in class GedcomxDatepublic String toFormalString()
toFormalString in class GedcomxDatepublic Integer getYears()
public Integer getMonths()
public Integer getDays()
public Integer getHours()
public Integer getMinutes()
public Integer getSeconds()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||