XEP-0202: Entity Time


XEP-0202: Entity Time allows you to request another entity’s time and timezone.

Here’s a simple example:

EntityTimeManager entityTimeManager = xmppClient.getManager(EntityTimeManager.class);
OffsetDateTime dateTime = entityTimeManager.getEntityTime(Jid.of("juliet@example.net/balcony")).getResult();