1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.FormatRelativeTime = void 0;
|
4 | var PartitionRelativeTimePattern_1 = require("./PartitionRelativeTimePattern");
|
5 | function FormatRelativeTime(rtf, value, unit, implDetails) {
|
6 | var parts = (0, PartitionRelativeTimePattern_1.PartitionRelativeTimePattern)(rtf, value, unit, implDetails);
|
7 | var result = '';
|
8 | for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
|
9 | var part = parts_1[_i];
|
10 | result += part.value;
|
11 | }
|
12 | return result;
|
13 | }
|
14 | exports.FormatRelativeTime = FormatRelativeTime;
|