public class GedcomxDateApproximate extends GedcomxDate
| Constructor and Description |
|---|
GedcomxDateApproximate(String date)
Instantiate a new approximate date
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(GedcomxDate other)
Calls the
compareTo method on the simple date that this GedcomxDateApproximate contains. |
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
|
GedcomxDateSimple |
getSimpleDate()
Return the underlying simple date
|
GedcomxDateType |
getType()
The type of this date
|
Integer |
getTzHours()
Get the timezone hours
|
Integer |
getTzMinutes()
Get the timezone minutes
|
Integer |
getYear()
Get the year
|
boolean |
isApproximate()
Whether or not this date is approximate
|
String |
toFormalString()
Returns the formal representation of this date
|
public GedcomxDateApproximate(String date)
date - The formal date stringpublic GedcomxDateSimple getSimpleDate()
public 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)
compareTo method on the simple date that this GedcomxDateApproximate contains.
See GedcomxDateSimple.compareTo(GedcomxDate) for more informationcompareTo in interface Comparable<GedcomxDate>compareTo in class GedcomxDateother - the object to be compared.Copyright © 2024. All rights reserved.