|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.atunes.utils.DateUtils
public class DateUtils
The Class DateUtils.
| Constructor Summary | |
|---|---|
DateUtils()
|
|
| Method Summary | |
|---|---|
static java.util.Calendar |
getCalendar()
Returns a Calendar instance. |
static int |
getCurrentYear()
Returns the current year. |
static java.util.Date |
parseRFC3339Date(java.lang.String dateStr)
Parses a RFC 3339 date string. |
static java.util.Date |
parseRFC822Date(java.lang.String dateString)
Parses a RFC 822 date string. |
static void |
setLocale(java.util.Locale l)
Sets the locale. |
static java.lang.String |
toPathString(java.util.Date objDate)
Returns a String with locale representation of Date, replacing / for -. |
static java.lang.String |
toString(java.util.Date objDate)
Returns a String with locale representation of Date. |
| 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 java.util.Calendar getCalendar()
public static int getCurrentYear()
public static java.util.Date parseRFC3339Date(java.lang.String dateStr)
dateStr - A RFC 3339 date as string
null if the
date couldn't be parsedpublic static java.util.Date parseRFC822Date(java.lang.String dateString)
dateString - A RFC 822 date as string
null if the
date couldn't be parsedpublic static void setLocale(java.util.Locale l)
l - the new localepublic static java.lang.String toPathString(java.util.Date objDate)
objDate - the obj date
public static java.lang.String toString(java.util.Date objDate)
objDate - the obj date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||