UNPKG

filecoin-pin

Version:

Bridge IPFS content to Filecoin Onchain Cloud using familiar tools

16 lines 725 B
/** * Helpers for formatting time-like values for CLI display. */ /** * Format a runway duration for human-readable CLI output. * * - For small values (< 60 days): include days and hours * - For medium values (< 365 days): include months and days (30-day months) * - For large values (>= 365 days): include years, months and days (365-day years, 30-day months) * * @param days - Whole days of runway (non-negative) * @param hoursRemainder - Hours remainder (0-23). Ignored when days >= 60 * @returns A formatted string, e.g., "5 day(s) 12 hour(s)" or "1 year(s) 2 month(s) 3 day(s)" */ export declare function formatRunwayDuration(days: number, hoursRemainder?: number): string; //# sourceMappingURL=time.d.ts.map