@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
33 lines (32 loc) • 2.47 kB
TypeScript
export declare const dateFormat = "MMM do, yyyy";
export declare const timeFormat = "hh:mm a";
export declare const dateTimeFormat = "MMM do, yyyy 'at' hh:mm a";
export declare const timeNumericFormat = "hh:mm:ss a";
export declare const timeNumericShortFormat = "hh:mm a";
export declare const dateNumericFormat = "yyyy/MM/dd";
export declare const dateTimeNumericFormat = "yyyy/MM/dd hh:mm:ss a";
export declare const dateTimeNumericShortFormat = "yyyy/MM/dd hh:mm a";
export { daysInWeek, daysInYear, maxTime, millisecondsInMinute, millisecondsInHour, millisecondsInSecond, minTime, minutesInHour, monthsInQuarter, monthsInYear, quartersInYear, secondsInHour, secondsInMinute, secondsInDay, secondsInWeek, secondsInYear, secondsInMonth, secondsInQuarter } from 'date-fns/constants';
export declare const hoursInDay = 24;
export declare function isDate(value: unknown): value is Date;
export declare function isInvalidDate(value: unknown): boolean;
export declare function sortDates(itemA: Date, itemB: Date): number;
export declare function formatDate(value: Date | string, format?: string): string;
export declare function parseDate(value: string, reference?: Date): Date;
export declare function formatTime(value: Date): string;
export declare function parseTime(value: string, reference?: Date): Date;
export declare function formatDateTime(value: Date): string;
export declare function parseDateTime(value: string, reference?: Date): Date;
export declare function formatTimeNumeric(value: Date | string): string;
export declare function parseTimeNumeric(value: string, reference?: Date): Date;
export declare function formatTimeShortNumeric(value: Date | string): string;
export declare function parseTimeShortNumeric(value: string, reference?: Date): Date;
export declare function formatDateNumeric(value: Date): string;
export declare function parseDateNumeric(value: string, reference?: Date): Date;
export declare function formatDateTimeNumeric(value: Date | string): string;
export declare function parseDateTimeNumeric(value: string, reference?: Date): Date;
export declare function formatDateTimeShortNumeric(value: Date | string): string;
export declare function parseDateTimeShortNumeric(value: string, reference?: Date): Date;
export declare function formatDateTimeRelative(value: Date | string, comparedTo?: Date | string): string;
export declare function formatRouteDate(date: Date): string;
export declare function parseRouteDate(value: string): Date;