public class IlrGMonthDay extends IlrTimeZone
gMonthDay of the W3C XML
Schema recommendation (
http://www.w3.org/TR/xmlschema-2/#gMonthDay).EQUAL, GREATER, LOWER| Constructor and Description |
|---|
IlrGMonthDay()
Builds a
gMonthDay without any time zone. |
IlrGMonthDay(java.util.Date date)
Builds a
gMonthDay without any time zone from a date. |
IlrGMonthDay(java.util.Date date,
java.util.TimeZone timeZone)
Builds a
gMonthDay from a date and a time zone. |
IlrGMonthDay(long l)
Builds an
IlrGMonthDay from a long. |
IlrGMonthDay(java.lang.String str)
Builds a
gMonthDay from a string. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IlrGMonthDay date)
Compares two
gMonthDays. |
boolean |
equals(java.lang.Object obj) |
short |
getDay()
Gets the day.
|
short |
getMonth()
Gets the month.
|
boolean |
isEqual(IlrGMonthDay dt)
Determines if two
gMonthDays are equal. |
static IlrGMonthDay |
parse(java.lang.String str)
Creates a
gMonthDay from a string. |
void |
set(java.util.Date date)
Sets the
gMonthDay from a date. |
void |
set(java.util.Date date,
java.util.TimeZone timeZone)
Sets the
GMonthDay from a date and a time zone. |
void |
setDate(short month,
short day)
Sets the date from month/day.
|
java.util.Date |
toDate()
Converts the
gMonthDay to a date. |
java.lang.String |
toString() |
static IlrGMonthDay |
valueOf(java.lang.String str)
Creates a
gMonthDay from a string. |
formatToString, formatToString, getTimeZoneInMillis, getZoneHour, getZoneMinute, isEqual, isUTC, isZonePositive, setTimeZone, setTimeZoneInMillis, setUTC, toTimeZone, unsetUTCpublic IlrGMonthDay()
gMonthDay without any time zone.public IlrGMonthDay(long l)
IlrGMonthDay from a long.l - The long parameterpublic IlrGMonthDay(java.util.Date date)
gMonthDay without any time zone from a date.public IlrGMonthDay(java.util.Date date,
java.util.TimeZone timeZone)
gMonthDay from a date and a time zone.public IlrGMonthDay(java.lang.String str)
throws IlrDateFormatException
gMonthDay from a string.IlrDateFormatException - When the string format is invalid.public void set(java.util.Date date)
gMonthDay from a date.public void set(java.util.Date date,
java.util.TimeZone timeZone)
GMonthDay from a date and a time zone.public void setDate(short month,
short day)
public short getMonth()
public short getDay()
public java.util.Date toDate()
throws IlrDateFormatException
gMonthDay to a date.IlrDateFormatExceptionpublic java.lang.String toString()
toString in class IlrTimeZonepublic boolean isEqual(IlrGMonthDay dt)
gMonthDays are equal.public boolean equals(java.lang.Object obj)
equals in class IlrTimeZonepublic int compareTo(IlrGMonthDay date)
gMonthDays. A GREATER comparison result means
that the current month:day is after the month:day used in the parameter.public static IlrGMonthDay parse(java.lang.String str) throws IlrDateFormatException
gMonthDay from a string.IlrDateFormatException - When the string format is invalid.public static IlrGMonthDay valueOf(java.lang.String str)
gMonthDay from a string.IlrDateFormatException - When the string format is invalid.© Copyright IBM Corp. 1987, 2017