public class BaseDateProvider extends Object implements DateProvider
| Constructor and Description |
|---|
BaseDateProvider() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Date date) |
String |
format(Date date,
Granularity granularity) |
Date |
now() |
Date |
parse(String string) |
Date |
parse(String date,
Granularity granularity) |
public String format(Date date)
format in interface DateProviderpublic Date now()
now in interface DateProviderpublic String format(Date date, Granularity granularity)
format in interface DateProviderpublic Date parse(String date, Granularity granularity) throws ParseException
parse in interface DateProviderParseExceptionpublic Date parse(String string) throws ParseException
parse in interface DateProviderParseExceptionCopyright © 2020. All rights reserved.