@jdlien/validator-utils 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -27,11 +27,12 @@ export declare function parseTime(value: string): {
|
|
|
27
27
|
second: number;
|
|
28
28
|
} | null;
|
|
29
29
|
export declare function parseTimeToString(value: string, format?: string): string;
|
|
30
|
-
|
|
31
|
-
export declare function parseDateTime(value: string): Date | null;
|
|
30
|
+
export declare function parseDateTime(value: string | Date): Date | null;
|
|
32
31
|
export declare function formatDateTime(date: Date | string, format?: string): string;
|
|
33
32
|
export declare function parseDateToString(value: string | Date, format?: string): string;
|
|
33
|
+
export declare function parseDateTimeToString(value: string | Date, format?: string): string;
|
|
34
34
|
export declare function isDate(value: string | Date): boolean;
|
|
35
|
+
export declare function isDateTime(value: string | Date): boolean;
|
|
35
36
|
export declare function isDateInRange(date: Date, range: string): boolean;
|
|
36
37
|
export declare function isMeridiem(token: string): boolean;
|
|
37
38
|
export declare function isTime(value: string): boolean;
|