1 | import { LocalDate, LocalDateTime, LocalTime, ZonedDateTime, ZoneId } from '@js-joda/core';
|
2 | import '@js-joda/timezone';
|
3 | import { ILocalDateLike } from './conversion';
|
4 | export declare enum FormatDateType {
|
5 | short = "short",
|
6 | medium = "medium",
|
7 | long = "long"
|
8 | }
|
9 | export interface FormatDateParams {
|
10 | type?: FormatDateType | 'short' | 'medium' | 'long';
|
11 | time?: boolean;
|
12 | date?: boolean;
|
13 | format?: string;
|
14 | }
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | export declare function formatDate(obj: ILocalDateLike | Date | LocalDate | number | string | LocalDateTime | LocalTime | ZonedDateTime | null | undefined, { type, time, date, format }?: FormatDateParams, zone?: ZoneId): string;
|