1 | import { PartitionRelativeTimePattern } from './PartitionRelativeTimePattern';
|
2 | export function FormatRelativeTime(rtf, value, unit, implDetails) {
|
3 | var parts = PartitionRelativeTimePattern(rtf, value, unit, implDetails);
|
4 | var result = '';
|
5 | for (var _i = 0, parts_1 = parts; _i < parts_1.length; _i++) {
|
6 | var part = parts_1[_i];
|
7 | result += part.value;
|
8 | }
|
9 | return result;
|
10 | }
|