|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjfun.util.DateUtil
public class DateUtil
Utility class to handle some date format logic.
| Constructor Summary | |
|---|---|
DateUtil()
|
|
| Method Summary | |
|---|---|
static java.text.DateFormat |
getDateFormat(java.lang.String pattern,
java.util.Locale locale)
Create a DateFormat object by using a Locale and a pattern. |
static java.text.DateFormat |
getDateFormat(java.lang.String pattern,
java.util.Locale locale,
java.util.TimeZone tzone)
Create a DateFormat object by using a Locale, a TimeZone and a pattern. |
static java.util.Locale |
parseLocale(java.lang.String str)
To parse a string to Local object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DateUtil()
| Method Detail |
|---|
public static java.util.Locale parseLocale(java.lang.String str)
str - the string.
java.lang.IllegalArgumentException - if the string is not in the right format.
public static java.text.DateFormat getDateFormat(java.lang.String pattern,
java.util.Locale locale)
pattern - the pattern.locale - the Locale object.
public static java.text.DateFormat getDateFormat(java.lang.String pattern,
java.util.Locale locale,
java.util.TimeZone tzone)
pattern - the pattern.locale - the Locale object.tzone - the TimeZone object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||