public final class DateUtils extends Object
Modifier and Type | Field and Description |
---|---|
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'.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final String LDAP_DATE_INTERNAL_STORAGE_FORMAT
public static final String LDAP_DATE_SIMPLIFIED_STORAGE_FORMAT
public static Date parse(String date) throws ParseException
date
- the date to parseParseException
- thrown if an error occurs in date parsingpublic static String format(Date date)
date
- date to extractCopyright © 2005-2024 LSC project. All Rights Reserved.