public class GedcomxDateDuration extends GedcomxDate
| Constructor and Description |
|---|
GedcomxDateDuration(String str)
Create a new duration from the formal string
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public GedcomxDateDuration(String str)
str - The formal duration stringpublic 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()
Copyright © 2019. All rights reserved.