net.sf.advjavacalendar.util
Class CalendarUtil

java.lang.Object
  extended by net.sf.advjavacalendar.util.CalendarUtil

public class CalendarUtil
extends java.lang.Object

Util class for Calendar


Constructor Summary
CalendarUtil()
           
 
Method Summary
static java.lang.String formatDate(java.util.Date toFormat, int length)
          Returns the given date formatted by the current locale
static java.lang.String getCurrentLocalizedMonth()
          Returns the current month string in the current locale
static java.lang.String getLocalizedDuration(long longValue)
          Returns the localized string of the given duration
static java.util.List<java.lang.String> getLocalizedMonthNames()
          Returns the month strings of the current locale as string array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarUtil

public CalendarUtil()
Method Detail

getLocalizedMonthNames

public static java.util.List<java.lang.String> getLocalizedMonthNames()
Returns the month strings of the current locale as string array

Returns:

getCurrentLocalizedMonth

public static java.lang.String getCurrentLocalizedMonth()
Returns the current month string in the current locale

Returns:

formatDate

public static java.lang.String formatDate(java.util.Date toFormat,
                                          int length)
Returns the given date formatted by the current locale

Parameters:
toFormat -
Returns:

getLocalizedDuration

public static java.lang.String getLocalizedDuration(long longValue)
Returns the localized string of the given duration

Parameters:
duration -
Returns:


Copyright © 2008 null. All Rights Reserved.