| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT |
static String |
NAMESPACE |
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE| Constructor and Description |
|---|
Time() |
Time(Calendar cal)
Creates a new Time instance using the specified calendar instance as
the time value to send.
|
| Modifier and Type | Method and Description |
|---|---|
static Time |
createResponse(Packet request) |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there
isn't one.
|
Date |
getTime()
Returns the local time or null if the time hasn't been set.
|
String |
getTzo()
Returns the time zone.
|
String |
getUtc()
Returns the time as a UTC formatted String using the format CCYY-MM-DDThh:mm:ssZ.
|
void |
setTime(Date time)
Sets the time using the local time.
|
void |
setTzo(String tzo)
Sets the time zone offset.
|
void |
setUtc(String utc)
Sets the time using UTC formatted String in the format CCYY-MM-DDThh:mm:ssZ.
|
createErrorResponse, createResultIQ, getType, setType, toXMLaddCommonAttributes, addExtension, addExtensions, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setTo, toStringpublic static final String NAMESPACE
public static final String ELEMENT
public Time()
public Date getTime()
public void setTime(Date time)
time - the current local time.public String getUtc()
public void setUtc(String utc)
utc - the time using a formatted String.public void setTzo(String tzo)
tzo - the time zone offset.public static Time createResponse(Packet request)
public String getChildElementXML()
IQExtensions of this class must override this method.
getChildElementXML in class IQ