com.liferay.portal.kernel.util
Class DateFormats

java.lang.Object
  extended by com.liferay.portal.kernel.util.DateFormats

public class DateFormats
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
DateFormats()
           
 
Method Summary
static java.text.DateFormat getDate(java.util.Locale locale)
           
static java.text.DateFormat getDate(java.util.Locale locale, java.util.TimeZone timeZone)
           
static java.text.DateFormat getDateTime(java.util.Locale locale)
           
static java.text.DateFormat getDateTime(java.util.Locale locale, java.util.TimeZone timeZone)
           
static java.text.DateFormat getTime(java.util.Locale locale)
           
static java.text.DateFormat getTime(java.util.Locale locale, java.util.TimeZone timeZone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateFormats

public DateFormats()
Method Detail

getDate

public static java.text.DateFormat getDate(java.util.Locale locale)

getDate

public static java.text.DateFormat getDate(java.util.Locale locale,
                                           java.util.TimeZone timeZone)

getDateTime

public static java.text.DateFormat getDateTime(java.util.Locale locale)

getDateTime

public static java.text.DateFormat getDateTime(java.util.Locale locale,
                                               java.util.TimeZone timeZone)

getTime

public static java.text.DateFormat getTime(java.util.Locale locale)

getTime

public static java.text.DateFormat getTime(java.util.Locale locale,
                                           java.util.TimeZone timeZone)