info.monitorenter.util
Class SimpleDateFormatAnalyzer

java.lang.Object
  extended by info.monitorenter.util.SimpleDateFormatAnalyzer

public final class SimpleDateFormatAnalyzer
extends java.lang.Object

Hack for a SimpleDateFormat to get further information about the fields that will be displayed.

Version:
$Revision: 1.3 $
Author:
Achim Westermann

Method Summary
static boolean displaysDay(java.text.SimpleDateFormat format)
          Returns true if the given date format displays days.
static boolean displaysHour(java.text.SimpleDateFormat format)
          Returns true if the given date format displays hours.
static boolean displaysMillisecond(java.text.SimpleDateFormat format)
          Returns true if the given date format displays milliseconds.
static boolean displaysMinute(java.text.SimpleDateFormat format)
          Returns true if the given date format displays minutes.
static boolean displaysMonth(java.text.SimpleDateFormat format)
          Returns true if the given date format displays months.
static boolean displaysSecond(java.text.SimpleDateFormat format)
          Returns true if the given date format displays seconds.
static boolean displaysWeek(java.text.SimpleDateFormat format)
          Returns true if the given date format displays weeks.
static boolean displaysYear(java.text.SimpleDateFormat format)
          Returns true if the given date format displays years.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

displaysDay

public static boolean displaysDay(java.text.SimpleDateFormat format)
Returns true if the given date format displays days.

Parameters:
format - the date format to check.
Returns:
true if the given date format displays days.

displaysHour

public static boolean displaysHour(java.text.SimpleDateFormat format)
Returns true if the given date format displays hours.

Parameters:
format - the date format to check.
Returns:
true if the given date format displays hours.

displaysMillisecond

public static boolean displaysMillisecond(java.text.SimpleDateFormat format)
Returns true if the given date format displays milliseconds.

Parameters:
format - the date format to check.
Returns:
true if the given date format displays milliseconds.

displaysMinute

public static boolean displaysMinute(java.text.SimpleDateFormat format)
Returns true if the given date format displays minutes.

Parameters:
format - the date format to check.
Returns:
true if the given date format displays minutes.

displaysMonth

public static boolean displaysMonth(java.text.SimpleDateFormat format)
Returns true if the given date format displays months.

Parameters:
format - the date format to check.
Returns:
true if the given date format displays months.

displaysSecond

public static boolean displaysSecond(java.text.SimpleDateFormat format)
Returns true if the given date format displays seconds.

Parameters:
format - the date format to check.
Returns:
true if the given date format displays seconds.

displaysWeek

public static boolean displaysWeek(java.text.SimpleDateFormat format)
Returns true if the given date format displays weeks.

Parameters:
format - the date format to check.
Returns:
true if the given date format displays weeks.

displaysYear

public static boolean displaysYear(java.text.SimpleDateFormat format)
Returns true if the given date format displays years.

Parameters:
format - the date format to check.
Returns:
true if the given date format displays years.


Copyright © 2001 - 2010 LGPL, All Rights Footloose.