@technobuddha > library > Time > Relative Time
Function: duration()
ts
function duration(
start: Date,
finish: Date,
options: DurationOptions): string;Defined in: duration.ts:24
Describe duration between two dates in a simple format
Parameters
| Parameter | Type | Description |
|---|---|---|
start | Date | The date |
finish | Date | The date to compare to |
options | DurationOptions | see DurationOptions |
Returns
string
string describing the duration between the two dates