public final class DateUtils extends Object
| Modifier | Constructor and Description |
|---|---|
private |
DateUtils()
Private constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static Date |
convertIntervalDate(String intervalDate)
Converts the 18-digit Active Directory timestamps, also named 'Windows NT time format' or 'Win32 FILETIME or SYSTEMTIME'.
|
static Date |
getDate(String zuluTime)
Return a Date instance from a String
|
static String |
getGeneralizedTime()
Gets the generalized time right now.
|
static String |
getGeneralizedTime(Date date) |
static String |
getGeneralizedTime(long time) |
public static Date getDate(String zuluTime)
zuluTime - The String to convertpublic static String getGeneralizedTime()
GeneralizedTimepublic static String getGeneralizedTime(Date date)
date - the date to be converted to generalized time stringgetGeneralizedTime()public static String getGeneralizedTime(long time)
time - the time value to be converted to generalized time stringgetGeneralizedTime()public static Date convertIntervalDate(String intervalDate) throws ParseException
intervalDate - 18-digit number. Time in 100-nanoseconds intervals since 1.1.1601ParseException - If the given interval is not validCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.