@controladad/ng-base
Version:
Everything you need for Angular
14 lines (13 loc) • 624 B
TypeScript
import * as dateFns from 'date-fns';
export declare function DateFns(): typeof dateFns;
export declare function getDatesIntervalInHHMMSS(start: Date, end: Date, showSymbol?: boolean): {
hours: number;
minutes: number | undefined;
seconds: number | undefined;
negative: boolean;
formatted: string;
};
export declare function getFormattedDate(date: string | Date | undefined, format?: string): string;
export declare function parseDate(date: string, format: string): Date;
export declare function getDurationInHHMM(minutes: number): string;
export declare function getHHMMInDuration(text: string): number;