| java.lang.Object java.text.Format java.text.DateFormat java.text.SimpleDateFormat com.salmonllc.util.SalmonDateFormat
SalmonDateFormat | public class SalmonDateFormat extends java.text.SimpleDateFormat (Code) | | A class that handles some standard date formats automatically.
Creation date: (5/9/01 4:38:51 PM)
author: : Fred Cahill |
Method Summary | |
public Date | parse(String text) Parses the specified date with the specified pattern, if it fails it uses the predefined patterns of this object. |
SalmonDateFormat | public SalmonDateFormat()(Code) | | SalmonDateFormat constructor.
|
SalmonDateFormat | public SalmonDateFormat(String pattern)(Code) | | SalmonDateFormat constructor.
Parameters: pattern - java.lang.String A pattern of the date to be parsed |
SalmonDateFormat | public SalmonDateFormat(String pattern, java.text.DateFormatSymbols formatData)(Code) | | SalmonDateFormat constructor.
Parameters: pattern - java.lang.String A pattern of the date to be parsed. Parameters: formatData - java.text.DateFormatSymbols See java.text.SimpleDateFormat |
SalmonDateFormat | public SalmonDateFormat(String pattern, java.util.Locale loc)(Code) | | SalmonDateFormat constructor comment.
Parameters: pattern - java.lang.String A pattern of the date to be parsed Parameters: loc - java.util.Locale See java.text.SimpleDateFormat |
parse | public Date parse(String text) throws ParseException(Code) | | Parses the specified date with the specified pattern, if it fails it uses the predefined patterns of this object.
Parameters: text - java.lang.String A string representing the date to be parsed. |
Methods inherited from java.text.DateFormat | public Object clone()(Code)(Java Doc) public boolean equals(Object obj)(Code)(Java Doc) final public StringBuffer format(Object obj, StringBuffer toAppendTo, FieldPosition fieldPosition)(Code)(Java Doc) abstract public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)(Code)(Java Doc) final public String format(Date date)(Code)(Java Doc) public static Locale[] getAvailableLocales()(Code)(Java Doc) public Calendar getCalendar()(Code)(Java Doc) final public static DateFormat getDateInstance()(Code)(Java Doc) final public static DateFormat getDateInstance(int style)(Code)(Java Doc) final public static DateFormat getDateInstance(int style, Locale aLocale)(Code)(Java Doc) final public static DateFormat getDateTimeInstance()(Code)(Java Doc) final public static DateFormat getDateTimeInstance(int dateStyle, int timeStyle)(Code)(Java Doc) final public static DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale aLocale)(Code)(Java Doc) final public static DateFormat getInstance()(Code)(Java Doc) public NumberFormat getNumberFormat()(Code)(Java Doc) final public static DateFormat getTimeInstance()(Code)(Java Doc) final public static DateFormat getTimeInstance(int style)(Code)(Java Doc) final public static DateFormat getTimeInstance(int style, Locale aLocale)(Code)(Java Doc) public TimeZone getTimeZone()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isLenient()(Code)(Java Doc) public Date parse(String source) throws ParseException(Code)(Java Doc) abstract public Date parse(String source, ParsePosition pos)(Code)(Java Doc) public Object parseObject(String source, ParsePosition pos)(Code)(Java Doc) public void setCalendar(Calendar newCalendar)(Code)(Java Doc) public void setLenient(boolean lenient)(Code)(Java Doc) public void setNumberFormat(NumberFormat newNumberFormat)(Code)(Java Doc) public void setTimeZone(TimeZone zone)(Code)(Java Doc)
|
|
|