/** * Time Formatting Utilities * * Shared utilities for formatting timestamps in a consistent way * across the CLI commands. * * @module utils/time-format */ /** * Format a date/time in local timezone with consistent format * * @param date - Date to format (Date object, ISO string, or timestamp) * @param includeSeconds - Whether to include seconds in the output * @returns Formatted date/time string */ export declare function formatLocalDateTime(date: Date | string | number, includeSeconds?: boolean): string; /** * Format time only (HH:MM:SS) in local timezone * * @param date - Date to format (Date object, ISO string, or timestamp) * @param includeSeconds - Whether to include seconds in the output * @returns Formatted time string */ export declare function formatLocalTime(date: Date | string | number, includeSeconds?: boolean): string; /** * Get the local timezone name * * @returns Timezone name (e.g., "America/Los_Angeles") */ export declare function getLocalTimezone(): string; /** * Format a relative time (e.g., "2 minutes ago", "in 5 seconds") * * @param date - Date to compare (Date object, ISO string, or timestamp) * @param baseDate - Base date to compare against (defaults to now) * @returns Formatted relative time string */ export declare function formatRelativeTime(date: Date | string | number, baseDate?: Date): string; /** * Parse a time range string (e.g., "5m", "1h", "2d") to milliseconds * * @param since - Time range string * @returns Milliseconds */ export declare function parseTimeRange(since: string): number; /** * Format milliseconds to human-readable time range string * * @param ms - Milliseconds * @returns Human-readable string (e.g., "5m", "2h", "3d") */ export declare function formatTimeRange(ms: number): string; //# sourceMappingURL=time-format.d.ts.map