R
I

UseTimeAgoUnit

testeddemo

A single time unit used while resolving the most appropriate granularity.

Demo

Loading demo…

Signature

ts
interface UseTimeAgoUnit<Unit extends string = UseTimeAgoUnitName>

Type Parameters

Unitextends string= UseTimeAgoUnitName

Properties

PropertyTypeDescription
maxnumberUpper bound (exclusive) of the absolute diff (ms) this unit applies to
valuenumberLength of one unit in milliseconds
nameUnitUnit name; used to look up the matching message formatter