com.darwinsys.util
Class DateUtils

java.lang.Object
  extended by com.darwinsys.util.DateUtils

public class DateUtils
extends java.lang.Object


Constructor Summary
DateUtils()
           
 
Method Summary
 int[] getDaysOfMonths()
           
static java.lang.String getMonthName(int monthNumber)
           
static int month(java.lang.String monthName)
          Convert a month name (english names) (or a valid abbreviation) to an int in {1,12}.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateUtils

public DateUtils()
Method Detail

month

public static int month(java.lang.String monthName)
Convert a month name (english names) (or a valid abbreviation) to an int in {1,12}. Warning: the current implementation uses startsWith(), so month("J") returns 1.

Parameters:
monthName -
Returns:
the month number, in the range 1-12.

getMonthName

public static java.lang.String getMonthName(int monthNumber)

getDaysOfMonths

public int[] getDaysOfMonths()


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.