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 booleandisplaysDay(SimpleDateFormat format) Returns true if the given date format displays days.static booleandisplaysHour(SimpleDateFormat format) Returns true if the given date format displays hours.static booleandisplaysMillisecond(SimpleDateFormat format) Returns true if the given date format displays milliseconds.static booleandisplaysMinute(SimpleDateFormat format) Returns true if the given date format displays minutes.static booleandisplaysMonth(SimpleDateFormat format) Returns true if the given date format displays months.static booleandisplaysSecond(SimpleDateFormat format) Returns true if the given date format displays seconds.static booleandisplaysWeek(SimpleDateFormat format) Returns true if the given date format displays weeks.static booleandisplaysYear(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.
-