Package org.gedcomx.date
Class GedcomxDateSimple
- java.lang.Object
-
- org.gedcomx.date.GedcomxDate
-
- org.gedcomx.date.GedcomxDateSimple
-
public class GedcomxDateSimple extends GedcomxDate
A Simple Date- Author:
- John Clark.
-
-
Constructor Summary
Constructors Constructor Description GedcomxDateSimple(String date)Instantiate a new Simple date based off of a formal date string.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetDay()Get the dayIntegergetHours()Get the hoursIntegergetMinutes()Get the minutesIntegergetMonth()Get the monthIntegergetSeconds()Get the secondsGedcomxDateTypegetType()Get the Date TypeIntegergetTzHours()Get the timezone hoursIntegergetTzMinutes()Get the timezone minutesIntegergetYear()Get the yearbooleanisApproximate()Whether or not this date can be considered approximateStringtoFormalString()Output the formal string for this date
-
-
-
Constructor Detail
-
GedcomxDateSimple
public GedcomxDateSimple(String date)
Instantiate a new Simple date based off of a formal date string.- Parameters:
date- The date
-
-
Method Detail
-
getType
public GedcomxDateType getType()
Get the Date Type- Specified by:
getTypein classGedcomxDate- Returns:
- The type
-
isApproximate
public boolean isApproximate()
Whether or not this date can be considered approximate- Specified by:
isApproximatein classGedcomxDate- Returns:
- True if this is approximate
-
toFormalString
public String toFormalString()
Output the formal string for this date- Specified by:
toFormalStringin classGedcomxDate- Returns:
- The formal date string
-
getYear
public Integer getYear()
Get the year- Returns:
- The Year
-
getMonth
public Integer getMonth()
Get the month- Returns:
- The Month
-
getDay
public Integer getDay()
Get the day- Returns:
- The Day
-
getHours
public Integer getHours()
Get the hours- Returns:
- The Hours
-
getMinutes
public Integer getMinutes()
Get the minutes- Returns:
- The Minutes
-
getSeconds
public Integer getSeconds()
Get the seconds- Returns:
- The seconds
-
getTzHours
public Integer getTzHours()
Get the timezone hours- Returns:
- The Timezone Hours
-
getTzMinutes
public Integer getTzMinutes()
Get the timezone minutes- Returns:
- The Timezone Minutes
-
-