Download plugins/flatpickr/utils/dates.d.ts from duainsan/guna_js: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/datasets/duainsan/guna_js/resolve/main/plugins/flatpickr/utils/dates.d.ts
- Command line
-
hf download hf://datasets/duainsan/guna_js/plugins/flatpickr/utils/dates.d.ts
-
curl -L -o dates.d.ts https://huggingface.co/datasets/duainsan/guna_js/resolve/main/plugins/flatpickr/utils/dates.d.ts
1.09 kB
| import { Locale } from "../types/locale"; | |
| import { ParsedOptions } from "../types/options"; | |
| export interface FormatterArgs { | |
| config?: ParsedOptions; | |
| l10n?: Locale; | |
| isMobile?: boolean; | |
| } | |
| export declare const createDateFormatter: ({ config, l10n, isMobile, }: FormatterArgs) => (dateObj: Date, frmt: string, overrideLocale?: Locale | undefined) => string; | |
| export declare const createDateParser: ({ config, l10n }: { | |
| config?: ParsedOptions | undefined; | |
| l10n?: Locale | undefined; | |
| }) => (date: Date | string | number, givenFormat?: string | undefined, timeless?: boolean | undefined, customLocale?: Locale | undefined) => Date | undefined; | |
| export declare function compareDates(date1: Date, date2: Date, timeless?: boolean): number; | |
| export declare function compareTimes(date1: Date, date2: Date): number; | |
| export declare const isBetween: (ts: number, ts1: number, ts2: number) => boolean; | |
| export declare const duration: { | |
| DAY: number; | |
| }; | |
| export declare function getDefaultHours(config: ParsedOptions): { | |
| hours: number; | |
| minutes: number; | |
| seconds: number; | |
| }; | |