UNPKG

gamify-ui-core

Version:

🚀 The ultimate gamification engine for modern web applications. Framework-agnostic, real-time leaderboards, custom rule engine, streaks, missions, and AI-powered features.

57 lines • 1.53 kB
/** * Format date for display (supports custom format) */ export declare function formatDate(date: Date, format?: string): string; /** * Format time for display (supports custom format) */ export declare function formatTime(date: Date, format?: string): string; /** * Format relative time for display (test expectations) */ export declare function formatRelativeTime(date: Date): string; /** * Get hours between two dates */ export declare function getHoursBetween(date1: Date, date2: Date): number; /** * Get minutes between two dates */ export declare function getMinutesBetween(date1: Date, date2: Date): number; /** * Get time ago string */ export declare function getTimeAgo(date: Date): string; /** * Check if two dates are on the same day */ export declare function isSameDay(date1: Date, date2: Date): boolean; /** * Get days between two dates */ export declare function getDaysBetween(date1: Date, date2: Date): number; /** * Check if a date is today */ export declare function isToday(date: Date): boolean; /** * Check if a date is yesterday */ export declare function isYesterday(date: Date): boolean; /** * Check if a date is this week */ export declare function isThisWeek(date: Date): boolean; /** * Check if a date is this month */ export declare function isThisMonth(date: Date): boolean; /** * Get start of day */ export declare function getStartOfDay(date: Date): Date; /** * Get end of day */ export declare function getEndOfDay(date: Date): Date; //# sourceMappingURL=date.d.ts.map