|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ftpserver.util.DateUtils
public class DateUtils
This is a timezone conversion utility class.
Constructor Summary | |
---|---|
DateUtils()
|
Method Summary | |
---|---|
static Calendar |
getCalendar(Date dt,
TimeZone to)
Get the timezone specific calendar. |
static Date |
getDate(String str,
DateFormat df,
TimeZone from)
Get date object. |
static String |
getDifference(Date d1,
Date d2)
Get date difference => d1 - d2. |
static String |
getString(Date dt,
DateFormat df,
TimeZone to)
Get the timezone specific string. |
static String |
getUnixDate(Date date)
Get unix style date string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateUtils()
Method Detail |
---|
public static String getUnixDate(Date date)
public static String getString(Date dt, DateFormat df, TimeZone to)
public static Calendar getCalendar(Date dt, TimeZone to)
public static Date getDate(String str, DateFormat df, TimeZone from) throws ParseException
ParseException
public static String getDifference(Date d1, Date d2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |