Variable formatRelativeConst
formatRelative: (timestamp: number, options?: { now?: number }) => string
Type Declaration
-
- (timestamp: number, options?: { now?: number }): string
-
Parameters
- timestamp: number
Optionaloptions: { now?: number }
Returns string
'5m ago' / 'in 2h' / 'just now'.