public class GedcomxDateSimple extends GedcomxDate
| Constructor and Description |
|---|
GedcomxDateSimple(String date)
Instantiate a new Simple date based off of a formal date string.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GedcomxDate other)
Compares this GedcomxDateSimple object with either another GedcomxDateSimple object
or a GedcomxDateApproximate object.
|
Integer |
getDay()
Get the day
|
Integer |
getHours()
Get the hours
|
Integer |
getMinutes()
Get the minutes
|
Integer |
getMonth()
Get the month
|
Integer |
getSeconds()
Get the seconds
|
GedcomxDateType |
getType()
Get the Date Type
|
Integer |
getTzHours()
Get the timezone hours
|
Integer |
getTzMinutes()
Get the timezone minutes
|
Integer |
getYear()
Get the year
|
boolean |
isApproximate()
Whether or not this date can be considered approximate
|
String |
toFormalString()
Output the formal string for this date
|
public GedcomxDateSimple(String date)
date - The datepublic GedcomxDateType getType()
getType in class GedcomxDatepublic boolean isApproximate()
isApproximate in class GedcomxDatepublic String toFormalString()
toFormalString in class GedcomxDatepublic Integer getYear()
public Integer getMonth()
public Integer getDay()
public Integer getHours()
public Integer getMinutes()
public Integer getSeconds()
public Integer getTzHours()
public Integer getTzMinutes()
public int compareTo(GedcomxDate other)
this and other.
In other words, if there is missing field information it will reflect as the earliest
possible ISO 8601 representation of the object to use in comparison.compareTo in interface Comparable<GedcomxDate>compareTo in class GedcomxDateother - the object to be compared.ClassCastException - if other is not of type GedcomxDateSimple or GedcomxDateApproximateNullPointerException - if other is nullCopyright © 2025. All rights reserved.