public final class EntityTimeManager extends Manager
It automatically responds to entity time requests, with the system's current date and timezone information and allows to retrieve another entity's time.
| Modifier and Type | Method and Description |
|---|---|
OffsetDateTime |
getEntityTime(rocks.xmpp.addr.Jid jid)
Gets the time information (e.g. time zone) of another XMPP entity.
|
isEnabled, setEnabledpublic OffsetDateTime getEntityTime(rocks.xmpp.addr.Jid jid) throws XmppException
jid - The entity's JID.StanzaException - If the entity returned a stanza error.NoResponseException - If the entity did not respond.XmppExceptionCopyright © 2014–2015 XMPP.rocks. All rights reserved.