|
Openfire 3.9.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jivesoftware.util.XMPPDateTimeFormat
public class XMPPDateTimeFormat
Utility class for date/time format conversions as specified in XEP-0082 and XEP-0090 and For Date -> String converstion FastDateFormat is used
Field Summary | |
---|---|
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 Summary | |
---|---|
XMPPDateTimeFormat()
Create a new thread-safe instance of this utility class |
Method Summary | |
---|---|
static String |
format(Date date)
Formats a Date object to String as defined in XEP-0082. |
static String |
formatOld(Date date)
Formats a Date object to String as defined in legacy XMPP protocols (e.g. |
Date |
parseOldDate(String dateStr)
Tries to convert a given string to a Date object. |
Date |
parseString(String dateString)
Tries to convert a given string to a Date object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public XMPPDateTimeFormat()
Method Detail |
---|
public Date parseString(String dateString) throws ParseException
dateStr
- the String that should be parsed
ParseException
public Date parseOldDate(String dateStr) throws ParseException
dateStr
-
ParseException
public static String format(Date date)
date
-
public static String formatOld(Date date)
date
-
|
Openfire 3.9.0 Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |