|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.paris.lutece.util.date.DateUtil
public final class DateUtil
This class provides date utils.
Method Summary | |
---|---|
static long |
convertDaysInMiliseconds(long lDays)
Get the number of milliseconds in a given number of days |
static Date |
formatDate(String strDate,
Locale locale)
Get the date from String date The format pattern is specified internaly |
static Date |
formatDateLongYear(String strDate,
Locale locale)
Get the date from String date |
static Date |
formatDateSql(String strDate,
Locale locale)
Get the Date from String date
The format pattern is specified internaly |
static Timestamp |
formatTimestamp(String strDate,
Locale locale)
Get the Timestamp from String date
The format pattern is specified internaly |
static String |
getCurrentDateString()
Deprecated. Use getCurrentDateString( Locale locale ) |
static String |
getCurrentDateString(Locale locale)
Converts the current Date to a String date |
static Date |
getDate(String strDate)
Deprecated. Use formatDate( String strDate, Locale locale ) |
static Date |
getDateSql(String strDate)
Deprecated. Use formatDateSql( String strDate, Locale locale ) |
static String |
getDateString(Date date)
Deprecated. Use getDateString( Date date, Locale locale ) |
static String |
getDateString(Date date)
Deprecated. Use formatDate( String strDate, Locale locale ) |
static String |
getDateString(Date date,
Locale locale)
Convert the date to String with a standard pattern |
static String |
getDateString(long lTime,
Locale locale)
Converts a long value to a String date |
static String |
getDateString(Timestamp date)
Deprecated. Use getDateString( java.sql.Timestamp date, Locale locale ) |
static String |
getDateString(Timestamp date,
Locale locale)
Converts a Timestamp value to a String date |
static String |
getDateTimeString(long lTime)
Converts a long value to a String date in a "jj/mm/aaaa hh:mm" format |
static String |
getDefaultPattern(Locale locale)
Return the pattern for date |
static Timestamp |
getTimestamp(String strDate)
Deprecated. Use formatTimestamp( String strDate, Locale locale ) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getCurrentDateString()
public static Date getDateSql(String strDate)
strDate
- The String Date to convert, in a date in the "jj/mm/aaaa" format
public static Date getDate(String strDate)
strDate
- The String Date to convert, in a date in the "jj/mm/aaaa" format
public static Timestamp getTimestamp(String strDate)
strDate
- The String Date to convert, in a date in the "jj/mm/aaaa" format
public static String getDateString(Date date)
date
- java.sql.Date date to convert
public static String getDateString(Timestamp date)
date
- java.sql.Timestamp date to convert
public static String getDateString(Date date)
date
- java.util.Date date to convert
public static String getDateTimeString(long lTime)
lTime
- The long value to convert
public static Date formatDate(String strDate, Locale locale)
strDate
- the date to formatlocale
- The Locale
public static Date formatDateLongYear(String strDate, Locale locale)
strDate
- the date to formatlocale
- The Locale
public static Timestamp formatTimestamp(String strDate, Locale locale)
Timestamp
from String date
The format pattern is specified internaly
strDate
- the date to formatlocale
- The Locale
Timestamp
or null elsepublic static Date formatDateSql(String strDate, Locale locale)
Date
from String date
The format pattern is specified internaly
strDate
- the date to formatlocale
- The Locale
Date
or null elsepublic static String getDateString(Date date, Locale locale)
date
- The date to convertlocale
- The Locale
public static String getDateString(long lTime, Locale locale)
lTime
- The long value to convertlocale
- the locale
public static String getDateString(Timestamp date, Locale locale)
date
- The datelocale
- the locale
public static String getCurrentDateString(Locale locale)
locale
- the locale
public static String getDefaultPattern(Locale locale)
locale
- the Locale
public static long convertDaysInMiliseconds(long lDays)
lDays
- The number of days
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |