|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsc.utils.DateUtils
public final class DateUtils
Manage LDAP date format.
For example, use :
| Field Summary | |
|---|---|
static String |
LDAP_DATE_INTERNAL_STORAGE_FORMAT
This is the standard LDAP date format : yyyyMMddHHmmss.S'Z'. |
static String |
LDAP_DATE_SIMPLIFIED_STORAGE_FORMAT
This is the simplified LDAP date format : yyyyMMddHHmmss'Z'. |
| Constructor Summary | |
|---|---|
DateUtils()
|
|
| Method Summary | |
|---|---|
static String |
format(Date date)
Generate a date string - synchronized call to internal formatter object to support multi-threaded calls. |
static Date |
parse(String date)
Return a date object corresponding to the LDAP date string. |
static String |
simpleFormat(Date date)
Generate a date string - synchronized call to internal formatter object to support multi-threaded calls. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LDAP_DATE_INTERNAL_STORAGE_FORMAT
public static final String LDAP_DATE_SIMPLIFIED_STORAGE_FORMAT
| Constructor Detail |
|---|
public DateUtils()
| Method Detail |
|---|
public static Date parse(String date)
throws ParseException
date - the date to parse
ParseException - thrown if an error occurs in date parsingpublic static String format(Date date)
date - date to extract
public static String simpleFormat(Date date)
date - date to extract
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||