| 3 | import { parseDate } from './date-utils'; |
| 4 | |
| 5 | export class DefaultDateConverter implements DateConverter { |
| 6 | |
| 7 | parse(date: any, pattern?: string, locale?: string): Date { |
| 8 | return parseDate(date, pattern); |
| 9 | } |
| 10 | |
| 11 | format(date: Date, pattern?: string, locale?: string): string { |
| 12 | return I18nFormat.formatDate(date, pattern, locale); |
| 13 | } |
| 14 | |
| 15 | formatDateTime(date: Date, pattern?: string, locale?: string): string { |
| 16 | return I18nFormat.formatDateTimeWithoutGMT(date, pattern, locale); |
| 17 | } |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected