Package info.monitorenter.util
Class SimpleDateFormatAnalyzer
java.lang.Object
info.monitorenter.util.SimpleDateFormatAnalyzer
Hack for a
SimpleDateFormat
to get further
information about the fields that will be displayed.
- Version:
- $Revision: 1.3 $
- Author:
- Achim Westermann
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
displaysDay
(SimpleDateFormat format) Returns true if the given date format displays days.static boolean
displaysHour
(SimpleDateFormat format) Returns true if the given date format displays hours.static boolean
displaysMillisecond
(SimpleDateFormat format) Returns true if the given date format displays milliseconds.static boolean
displaysMinute
(SimpleDateFormat format) Returns true if the given date format displays minutes.static boolean
displaysMonth
(SimpleDateFormat format) Returns true if the given date format displays months.static boolean
displaysSecond
(SimpleDateFormat format) Returns true if the given date format displays seconds.static boolean
displaysWeek
(SimpleDateFormat format) Returns true if the given date format displays weeks.static boolean
displaysYear
(SimpleDateFormat format) Returns true if the given date format displays years.
-
Method Details
-
displaysDay
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
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
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
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
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
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
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
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.
-