Class BaseDateProvider
- java.lang.Object
-
- com.lyncode.xoai.dataprovider.services.impl.BaseDateProvider
-
- All Implemented Interfaces:
DateProvider
public class BaseDateProvider extends Object implements DateProvider
-
-
Constructor Summary
Constructors Constructor Description BaseDateProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringformat(Date date)Stringformat(Date date, Granularity granularity)Datenow()Dateparse(String string)Dateparse(String date, Granularity granularity)
-
-
-
Method Detail
-
format
public String format(Date date)
- Specified by:
formatin interfaceDateProvider
-
now
public Date now()
- Specified by:
nowin interfaceDateProvider
-
format
public String format(Date date, Granularity granularity)
- Specified by:
formatin interfaceDateProvider
-
parse
public Date parse(String date, Granularity granularity) throws ParseException
- Specified by:
parsein interfaceDateProvider- Throws:
ParseException
-
parse
public Date parse(String string) throws ParseException
- Specified by:
parsein interfaceDateProvider- Throws:
ParseException
-
-