RelativeDurationOptions
Localization options for RelativeDurationLocalizer and Duration.localizeRelative
Constructors
Properties
string that will be returned as-is in case if the computed unit is zero. Note that this doesn't necessarily mean that the passed Duration is itself Duration.ZERO, but rather that it's smaller than the minUnit. If this returns null, the default 0 <min-unit> localized string will be used. By default, this localizes the string "now" if the min unit is seconds, returns null otherwise.
the biggest unit that will be in output. If the Duration has bigger units, the output will contain the whole number of maxUnit (e.g. 123 minutes).
the smallest unit that will be in output. If the Duration is smaller, 0 <min-unit> will be returned (see also the ifZeroLocalization parameter)
the style of the duration unit