XMLGregorianCalendar
.@Deprecated public class TLcdXMLDateTime extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TLcdXMLDateTime.Type
Deprecated.
Enumeration class for defining the type of datetime.
|
Modifier and Type | Field and Description |
---|---|
static TLcdXMLDateTime.Type |
DATE
Deprecated.
Type for representing an xsd:date.
|
static TLcdXMLDateTime.Type |
DATETIME
Deprecated.
Type for representing an xsd:dateTime.
|
static int |
FIELD_UNDEFINED
Deprecated.
Special value that indicates that an int field has no value set.
|
static TLcdXMLDateTime.Type |
GDAY
Deprecated.
Type for representing an xsd:gDay.
|
static TLcdXMLDateTime.Type |
GMONTH
Deprecated.
Type for representing an xsd:gMonth.
|
static TLcdXMLDateTime.Type |
GMONTHDAY
Deprecated.
Type for representing an xsd:gMonthDay.
|
static TLcdXMLDateTime.Type |
GYEAR
Deprecated.
Type for representing an xsd:gYear.
|
static TLcdXMLDateTime.Type |
GYEARMONTH
Deprecated.
Type for representing an xsd:gYearMonth.
|
static TLcdXMLDateTime.Type |
TIME
Deprecated.
Type for representing an xsd:time.
|
Modifier and Type | Method and Description |
---|---|
static TLcdXMLDateTime |
createDate(int aYear,
int aMonth,
int aDay,
int aTimeZone)
Deprecated.
Creates an instance with the type date.
|
static TLcdXMLDateTime |
createDateTime(int aYear,
int aMonth,
int aDay,
int aHour,
int aMinute,
int aSecond,
BigDecimal aFractionalSecond,
int aTimeZone)
Deprecated.
Creates an instance with the type dateTime.
|
static TLcdXMLDateTime |
createDateTime(long aTime)
Deprecated.
Creates an instance with the type dateTime and all fields set according to the given time.
|
static TLcdXMLDateTime |
createGDay(int aDay,
int aTimeZone)
Deprecated.
Creates an instance of type gDay.
|
static TLcdXMLDateTime |
createGMonth(int aMonth,
int aTimeZone)
Deprecated.
Creates an instance of type gMonth.
|
static TLcdXMLDateTime |
createGMonthDay(int aMonth,
int aDay,
int aTimeZone)
Deprecated.
Creates an instance of type gMonthDay.
|
static TLcdXMLDateTime |
createGYear(int aYear,
int aTimeZone)
Deprecated.
Creates an instance of type gYear.
|
static TLcdXMLDateTime |
createGYearMonth(int aYear,
int aMonth,
int aTimeZone)
Deprecated.
Creates an instance with of type gYearMonth.
|
static TLcdXMLDateTime |
createTime(int aHour,
int aMinute,
int aSecond,
BigDecimal aFractionalSecond,
int aTimeZone)
Deprecated.
Creates an instance with the type time.
|
boolean |
equals(Object o)
Deprecated.
|
int |
getDay()
Deprecated.
Gets the day or
FIELD_UNDEFINED when this optional field is not defined. |
BigDecimal |
getFractionalSecond()
Deprecated.
Gets the fractional seconds or null when this optional field is not defined.
|
int |
getHour()
Deprecated.
Gets the hours or
FIELD_UNDEFINED when this optional field is not defined. |
int |
getMinute()
Deprecated.
Gets the minute or
FIELD_UNDEFINED when this optional field is not defined. |
int |
getMonth()
Deprecated.
Gets the month or
FIELD_UNDEFINED when this optional field is not defined. |
int |
getSecond()
Deprecated.
Gets the seconds or
FIELD_UNDEFINED when this optional field is not defined. |
int |
getTimeZone()
Deprecated.
Gets the timezone offset in minutes or
FIELD_UNDEFINED if this optional field is not defined. |
TLcdXMLDateTime.Type |
getType()
Deprecated.
Gets the type of date time.
|
int |
getYear()
Deprecated.
Gets the year or
FIELD_UNDEFINED when this optional field is not defined. |
int |
hashCode()
Deprecated.
|
void |
setDay(int aDay)
Deprecated.
Sets the day.
|
void |
setFractionalSecond(BigDecimal aFractionalSecond)
Deprecated.
Sets the fractional seconds.
|
void |
setHour(int aHour)
Deprecated.
Sets the hour.
|
void |
setMinute(int aMinute)
Deprecated.
Sets the minute.
|
void |
setMonth(int aMonth)
Deprecated.
Sets the month.
|
void |
setSecond(int aSecond)
Deprecated.
Sets the seconds.
|
void |
setTimeZone(int aTimeZone)
Deprecated.
Sets the timezone offset in minutes.
|
void |
setYear(int aYear)
Deprecated.
Sets the year.
|
Date |
toDate()
Deprecated.
Converts a instance to a date.
|
String |
toString()
Deprecated.
|
public static final TLcdXMLDateTime.Type DATE
public static final TLcdXMLDateTime.Type TIME
public static final TLcdXMLDateTime.Type DATETIME
public static final TLcdXMLDateTime.Type GYEARMONTH
public static final TLcdXMLDateTime.Type GMONTHDAY
public static final TLcdXMLDateTime.Type GYEAR
public static final TLcdXMLDateTime.Type GMONTH
public static final TLcdXMLDateTime.Type GDAY
public static final int FIELD_UNDEFINED
public static TLcdXMLDateTime createDateTime(long aTime)
aTime
- the given datepublic static TLcdXMLDateTime createDate(int aYear, int aMonth, int aDay, int aTimeZone)
aYear
- the year.aMonth
- the month.aDay
- the day.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.public static TLcdXMLDateTime createDateTime(int aYear, int aMonth, int aDay, int aHour, int aMinute, int aSecond, BigDecimal aFractionalSecond, int aTimeZone)
aYear
- the year.aMonth
- the month.aDay
- the day.aHour
- the hour.aMinute
- the minute.aSecond
- the second.aFractionalSecond
- the fractional second.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.public static TLcdXMLDateTime createTime(int aHour, int aMinute, int aSecond, BigDecimal aFractionalSecond, int aTimeZone)
aHour
- the hour.aMinute
- the minute.aSecond
- the second.aFractionalSecond
- the fractional second.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.public static TLcdXMLDateTime createGDay(int aDay, int aTimeZone)
aDay
- the day.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.public static TLcdXMLDateTime createGMonth(int aMonth, int aTimeZone)
aMonth
- the month.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.public static TLcdXMLDateTime createGYear(int aYear, int aTimeZone)
aYear
- the year.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.public static TLcdXMLDateTime createGYearMonth(int aYear, int aMonth, int aTimeZone)
aYear
- the year.aMonth
- the month.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.public static TLcdXMLDateTime createGMonthDay(int aMonth, int aDay, int aTimeZone)
aMonth
- the month.aDay
- the day.aTimeZone
- the timezone offset. null does not mean 0 but unspecified.public int getYear()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setYear(int aYear)
aYear
- the year to be set.public int getMonth()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setMonth(int aMonth)
aMonth
- the month to be set.public int getDay()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setDay(int aDay)
aDay
- the day to be set.public int getHour()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setHour(int aHour)
aHour
- the hour to be set.public int getMinute()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setMinute(int aMinute)
aMinute
- the minute to be set.public int getSecond()
FIELD_UNDEFINED
when this optional field is not defined.FIELD_UNDEFINED
when this optional field is not defined.public void setSecond(int aSecond)
aSecond
- the seconds to be set.public BigDecimal getFractionalSecond()
public void setFractionalSecond(BigDecimal aFractionalSecond)
aFractionalSecond
- the fractional seconds to be set.public int getTimeZone()
FIELD_UNDEFINED
if this optional field is not defined.FIELD_UNDEFINED
if this optional field is not defined.public void setTimeZone(int aTimeZone)
aTimeZone
- the timezone offset to be set.public TLcdXMLDateTime.Type getType()
public Date toDate()