utilyx
Version:
Modern utility helper library for cleaner, faster TypeScript/JavaScript development 🚀🔧
10 lines (9 loc) • 352 B
TypeScript
export declare function timeAgo(date: string): string;
export declare function getTimeDiff(start: Date | string, end: Date | string): {
days: number;
hours: number;
mins: number;
secs: number;
};
export declare function formatDate(date: Date | string, format: string): string;
export declare function isLeapYear(year: number): boolean;