astro-loader-hashnode
Version:
Astro content loader for seamlessly integrating Hashnode blog posts into your Astro website using the Content Layer API
23 lines (22 loc) • 554 B
TypeScript
/**
* Date and Time Utilities
*/
/**
* Format date for display
*/
export declare function formatDate(date: Date | string, options?: {
format?: 'short' | 'medium' | 'long' | 'iso';
locale?: string;
timezone?: string;
}): string;
/**
* Calculate time ago from a date
*/
export declare function timeAgo(date: Date | string, options?: {
locale?: string;
short?: boolean;
}): string;
/**
* Check if a date is recent (within specified days)
*/
export declare function isRecent(date: Date | string, daysThreshold?: number): boolean;