public final class EntityTime extends Object
<time/> element in the urn:xmpp:time namespace.| Constructor and Description |
|---|
EntityTime()
Creates a empty entity time element for requesting entity time.
|
EntityTime(TimeZone timeZone,
Date date) |
| Modifier and Type | Method and Description |
|---|---|
Date |
getDate()
Gets the entity's date.
|
TimeZone |
getTimezone()
Gets the entity's time zone.
|
String |
toString() |
static Date |
toUtcDate(String v)
Converts a string representation of a date to
Date. |
static String |
toUtcString(Date date)
Converts a date to its UTC string representation.
|
public static final String NAMESPACE
public EntityTime()
public static Date toUtcDate(String v)
Date.v - The string value of the date.IllegalArgumentException - If the string value does not conform to XEP-0082.public static String toUtcString(Date date)
date - The date.public TimeZone getTimezone()
public Date getDate()
Copyright © 2014 XMPP.rocks. All rights reserved.