public class IsoDate
Class that models an ISO-8601 date string
Constructor and Description |
---|
IsoDate(java.lang.String date)
Class that models an ISO-8601 date string
|
IsoDate()
Class that models an ISO-8601 date string
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(IsoDate other)
Compares this IsoObject with another IsoDate object
|
IsoDate |
copy(java.lang.String date)
Class that models an ISO-8601 date string
|
boolean |
equals(java.lang.Object p) |
java.lang.String |
getDay()
Retrieves the day of this date
|
java.lang.String |
getMonth()
Retrieves the month of this date
|
java.lang.String |
getYear()
Retrieves the year of this date
|
int |
hashCode() |
java.lang.String |
toString()
Retrieves the raw date string
|
public IsoDate(java.lang.String date)
Class that models an ISO-8601 date string
date
- : The ISO-8601 date stringdate
- : The ISO-8601 date stringpublic IsoDate()
Class that models an ISO-8601 date string
public java.lang.String toString()
Retrieves the raw date string
public java.lang.String getYear()
Retrieves the year of this date
public java.lang.String getMonth()
Retrieves the month of this date
public java.lang.String getDay()
Retrieves the day of this date
public int compareTo(IsoDate other)
Compares this IsoObject with another IsoDate object
other
- : The IsoDate to which to compare topublic IsoDate copy(java.lang.String date)
Class that models an ISO-8601 date string
date
- : The ISO-8601 date stringpublic int hashCode()
public boolean equals(java.lang.Object p)