@nextcloud/vue
Version:
Nextcloud vue components
29 lines (28 loc) • 1.28 kB
TypeScript
type __VLS_Props = {
/**
* The timestamp to display, either an unix timestamp (in milliseconds) or a Date object
*/
timestamp: Date | number;
/**
* The format used for displaying, or if relative time is used the format used for the title (optional)
*/
format?: Intl.DateTimeFormatOptions;
/**
* Wether to display the timestamp as time from now (optional)
*
* - `false`: Disable relative time
* - `'long'`: Long text, like *2 seconds ago* (default)
* - `'short'`: Short text, like *2 sec. ago*
* - `'narrow'`: Even shorter text (same as `'short'` on some languages)
*/
relativeTime?: false | 'long' | 'short' | 'narrow';
/**
* Ignore seconds when displaying the relative time and just show `a few seconds ago`
*/
ignoreSeconds?: boolean;
};
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
relativeTime: false | "long" | "short" | "narrow";
format: Intl.DateTimeFormatOptions;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
export default _default;