@technobuddha > library > Time > Relative Time
Type Alias: RelativeTimeOptions
ts
type RelativeTimeOptions = {
mdFormat?: string;
timeFormat?: string;
todayTomorrowYesterday?: boolean;
ymdFormat?: string;
};Defined in: relative-time.ts:14
Options for the relativeTime function
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
mdFormat? | string | Passed to formatDate to display a month and day | src/relative-time.ts:22 |
timeFormat? | string | Passed to formatDate to display a time | src/relative-time.ts:18 |
todayTomorrowYesterday? | boolean | Describe the time difference as a time on a nearby day | src/relative-time.ts:16 |
ymdFormat? | string | Passed to formatDate to display a year, month and day | src/relative-time.ts:20 |