Name

XMLGregorianCalendar

Synopsis

Instances of this class represent a date or time. Create XMLGregorianCalendar objects with a DatatypeFactory.

javax.xml.datatype.XMLGregorianCalendar

Figure 20-2. javax.xml.datatype.XMLGregorianCalendar

public abstract class XMLGregorianCalendar implements Cloneable {
// Public Constructors
     public XMLGregorianCalendar( );  
// Public Instance Methods
     public abstract void add(Duration duration);  
     public abstract void clear( );  
     public abstract int compare(XMLGregorianCalendar xmlGregorianCalendar);  
     public abstract int getDay( );  
     public abstract java.math.BigInteger getEon( );  
     public abstract java.math.BigInteger getEonAndYear( );  
     public abstract java.math.BigDecimal getFractionalSecond( );  
     public abstract int getHour( );  
     public int getMillisecond( );  
     public abstract int getMinute( );  
     public abstract int getMonth( );  
     public abstract int getSecond( );  
     public abstract int getTimezone( );  
     public abstract java.util.TimeZone getTimeZone(int defaultZoneoffset);  
     public abstract javax.xml.namespace.QName getXMLSchemaType( );  
     public abstract int getYear( );  
     public abstract boolean isValid( );  
     public abstract XMLGregorianCalendar normalize( );  
     public abstract void reset( );  
     public abstract void setDay(int day);  
     public abstract void setFractionalSecond(java.math.BigDecimal fractional);  
     public abstract void setHour(int hour);  
     public abstract void setMillisecond(int millisecond);  
     public abstract void setMinute ...

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.