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