CommonFormatDurationRange
- CommonFormatDurationRange(end: number | Date, start: number | Date, options?: { includeDays?: boolean; includeHours?: boolean; includeMinutes?: boolean; includeMonths?: boolean; includeSeconds?: boolean; includeWeeks?: boolean; includeYears?: boolean; showFull?: boolean }): string
Parameters
end: number | Date
start: number | Date
options: { includeDays?: boolean; includeHours?: boolean; includeMinutes?: boolean; includeMonths?: boolean; includeSeconds?: boolean; includeWeeks?: boolean; includeYears?: boolean; showFull?: boolean } = {}
optionalincludeDays: boolean
optionalincludeHours: boolean
optionalincludeMinutes: boolean
optionalincludeMonths: boolean
optionalincludeSeconds: boolean
optionalincludeWeeks: boolean
optionalincludeYears: boolean
optionalshowFull: boolean
Returns string
Formats a duration in ms to a human readable string of days, months, and years. Defaults to showing days.