| java.lang.Object org.mmbase.util.DateFormats
DateFormats | public class DateFormats (Code) | | Utility function to create DateFormat instances.
author: Michiel Meeuwissen since: MMBase-1.7.1 version: $Id: DateFormats.java,v 1.5 2007/06/20 14:00:10 michiel Exp $ |
Inner Class :protected static class DayOfWeekDateFormat extends DateFormat | |
Method Summary | |
public static DateFormat | getInstance(String format, String timeZone, Locale locale) Creates a DateFormat instance, based on a String.
Parameters: format - The format defining the DateFormat. |
getInstance | public static DateFormat getInstance(String format, String timeZone, Locale locale)(Code) | | Creates a DateFormat instance, based on a String.
Parameters: format - The format defining the DateFormat. This can be constants like :FULL, :FULL.FULL, :LONG, :MEDIUM or :SHORT. It can also be 'e' for weekday. Also 'RFC822' or 'rfc822' is possible then the quite complicated http://www.faqs.org/rfcs/rfc822.html compliant date and timeis made, which comes in handy when you need to create a rss feed f.e.Or none of those, then a SimpleDateFormat is instantiated. Parameters: timeZone - A String describing the timeZone (see DateFormat#setTimeZone) Parameters: locale - Most DateFormat's need a Locale too. throws: IllegalArgumentException - |
|
|