public class XMPPDateTimeFormat extends Object
Modifier and Type | Field and Description |
---|---|
static String |
XMPP_DATE_FORMAT |
static String |
XMPP_DATETIME_FORMAT
Date/time format for use by SimpleDateFormat.
|
static String |
XMPP_DATETIME_FORMAT_WO_MILLIS_WO_TIMEZONE |
static String |
XMPP_DATETIME_FORMAT_WO_TIMEZONE |
static String |
XMPP_DELAY_DATETIME_FORMAT
Date/time format for use by SimpleDateFormat.
|
static String |
XMPP_TIME_FORMAT |
static String |
XMPP_TIME_FORMAT_WO_MILLIS |
Constructor and Description |
---|
XMPPDateTimeFormat()
Create a new thread-safe instance of this utility class
|
Modifier and Type | Method and Description |
---|---|
static String |
format(Date date)
Formats a Date object to String as defined in XEP-0082.
|
Date |
parseString(String dateString)
Tries to convert a given string to a Date object.
|
public static final String XMPP_DATETIME_FORMAT
public static final String XMPP_DATETIME_FORMAT_WO_TIMEZONE
public static final String XMPP_DATETIME_FORMAT_WO_MILLIS_WO_TIMEZONE
public static final String XMPP_DATE_FORMAT
public static final String XMPP_TIME_FORMAT
public static final String XMPP_TIME_FORMAT_WO_MILLIS
public static final String XMPP_DELAY_DATETIME_FORMAT
public XMPPDateTimeFormat()
public Date parseString(String dateString) throws ParseException
dateString
- the String that should be parsedParseException
- if the date could not be parsedCopyright © 2003–2019 Ignite Realtime. All rights reserved.