@nethesis/vue-components
Version:
This library contains: - a collection of Vue 3 components based on [Flowbite](https://flowbite.com/) - a set of utility functions
23 lines • 899 B
TypeScript
/**
* Format a date expressed in milliseconds to current locale
*
*/
export declare function formatDateLoc(date: any, fmt: string): string;
export declare const formatInTimeZoneLoc: (date: any, fmt: string, tz: any) => string;
/**
* Get browser locale (english fallback)
*/
export declare const getDateFnsLocale: () => Locale;
/**
* Format a duration expressed in seconds to a human readable value. E.g. 189 -> 3 minutes 9 seconds
*
* @param seconds - duration to format
*
*/
export declare function formatDurationLoc(durationSeconds: number, options?: any): string | null;
/**
* Return the approximate and concise distance from a date to now. Example output: '2 hours'.
* Useful to show how long ago something has happened (e.g. a notification timestamp)
*/
export declare function humanDistanceToNowLoc(date: Date, options?: any): string | null;
//# sourceMappingURL=dateTime.d.ts.map