hirondelle.web4j.config
Class DateConverterImpl
Object
DateConverterImpl
- All Implemented Interfaces:
- DateConverter
public final class DateConverterImpl
- extends Object
- implements DateConverter
Implementation of DateConverter
, required by WEB4J.
Dates are formatted in the style, using Jan 31, 2006 at 01:59 as an example:
- eye-friendly format: '01/31/2006 01:59'; any trailing '00:00' or ':' is removed.
- hand-friendly format: 01312006 01:59; if time portion is absent, 00:00 is assumed.
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DateConverterImpl
public DateConverterImpl()
formatEyeFriendlyDateTime
public String formatEyeFriendlyDateTime(DateTime aDateTime,
Locale aLocale)
- Specified by:
formatEyeFriendlyDateTime
in interface DateConverter
parseEyeFriendlyDateTime
public DateTime parseEyeFriendlyDateTime(String aInputValue,
Locale aLocale)
- Specified by:
parseEyeFriendlyDateTime
in interface DateConverter
parseHandFriendlyDateTime
public DateTime parseHandFriendlyDateTime(String aInputValue,
Locale aLocale)
- Specified by:
parseHandFriendlyDateTime
in interface DateConverter
formatEyeFriendly
public String formatEyeFriendly(Date aDate,
Locale aLocale,
TimeZone aTimeZone)
- Specified by:
formatEyeFriendly
in interface DateConverter
parseHandFriendly
public Date parseHandFriendly(String aInputValue,
Locale aLocale,
TimeZone aTimeZone)
- Specified by:
parseHandFriendly
in interface DateConverter
parseEyeFriendly
public Date parseEyeFriendly(String aInputValue,
Locale aLocale,
TimeZone aTimeZone)
- Specified by:
parseEyeFriendly
in interface DateConverter
Copyright Hirondelle Systems - Generated 2013Oct19.12.26