public class TimeBuilder extends org.jivesoftware.smack.packet.IqBuilder<TimeBuilder,Time> implements TimeView
| Modifier and Type | Method and Description |
|---|---|
Time |
build() |
TimeBuilder |
getThis() |
java.lang.String |
getTzo()
Returns the time zone.
|
java.lang.String |
getUtc()
Returns the time as a UTC formatted String using the format CCYY-MM-DDThh:mm:ssZ.
|
TimeBuilder |
setTime(java.util.Calendar calendar) |
TimeBuilder |
setUtcAndTzo(java.lang.String utc,
java.lang.String tzo)
Sets the time using UTC formatted String, in the format CCYY-MM-DDThh:mm:ssZ, and the provided timezone
definition in the format (+|-)hh:mm.
|
addStanzaSpecificAttributes, createErrorResponse, createResponse, createResponse, getTypeaddExtension, addExtensions, addOptExtensions, buildIqData, buildMessage, buildMessage, buildMessageFrom, buildMessageFrom, buildPresence, buildPresence, buildPresenceFrom, buildPresenceFrom, buildResponse, from, from, getError, getExtension, getExtensions, getExtensions, getExtensions, getFrom, getLanguage, getStanzaId, getTo, overrideExtension, setError, setLanguage, throwIfNoStanzaId, to, to, toString, willBuildStanzaWithIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic TimeBuilder setUtcAndTzo(java.lang.String utc, java.lang.String tzo) throws java.text.ParseException
utc - the time using a formatted String.tzo - the time zone definition.java.text.ParseException - if the provided string is not parsable (e.g. because it does not follow the expected
format).public TimeBuilder setTime(java.util.Calendar calendar)
public java.lang.String getUtc()
TimeViewpublic java.lang.String getTzo()
TimeViewpublic Time build()
build in class org.jivesoftware.smack.packet.IqBuilder<TimeBuilder,Time>public TimeBuilder getThis()
getThis in class org.jivesoftware.smack.packet.StanzaBuilder<TimeBuilder>