public interface XSDateTime
Interface to expose the values for all date-time related types. The following table shows the methods defined for various XML Schema 1.0 built-in types. 'X' marks whether a particular method is defined for a particular type. Accessing undefined methods may return unexpected values.
| XML Schema Datatype | getYears() | getMonths() | getDays() | getHours() | getMinutes() | getSeconds() | getTimeZoneHours() | getTimeZoneMinutes() | getXMLGregorianCalendar() | getDuration() | hasTimeZone() | normalize() | isNormalized() | getLexicalValue() | 
| gYear | X | - | - | - | - | - | X | X | X | - | X | X | X | X | 
| gMonth | - | X | - | - | - | - | X | X | X | - | X | X | X | X | 
| gDay | - | - | X | - | - | - | X | X | X | - | X | X | X | X | 
| gYearMonth | X | X | - | - | - | - | X | X | X | - | X | X | X | X | 
| gMonthDay | - | X | X | - | - | - | X | X | X | - | X | X | X | X | 
| date | X | X | X | - | - | - | X | X | X | - | X | X | X | X | 
| time | - | - | - | X | X | X | X | X | X | - | X | X | X | X | 
| datetime | X | X | X | X | X | X | X | X | X | - | X | X | X | X | 
| duration | - | X | - | - | - | X | - | - | - | X | - | - | - | X | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getDays() | 
| javax.xml.datatype.Duration | getDuration() | 
| int | getHours() | 
| java.lang.String | getLexicalValue() | 
| int | getMinutes() | 
| int | getMonths() | 
| double | getSeconds() | 
| int | getTimeZoneHours() | 
| int | getTimeZoneMinutes() | 
| javax.xml.datatype.XMLGregorianCalendar | getXMLGregorianCalendar() | 
| int | getYears() | 
| boolean | hasTimeZone() | 
| boolean | isNormalized() | 
| XSDateTime | normalize() | 
int getYears()
int getMonths()
int getDays()
int getHours()
int getMinutes()
double getSeconds()
boolean hasTimeZone()
int getTimeZoneHours()
int getTimeZoneMinutes()
java.lang.String getLexicalValue()
XSDateTime normalize()
boolean isNormalized()
javax.xml.datatype.XMLGregorianCalendar getXMLGregorianCalendar()
javax.xml.datatype.Duration getDuration()
Copyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.