(style: DurationStyle = 'Duration', options?: DurationFormatOptions)
| 262 | } |
| 263 | |
| 264 | getRelativeNowText(style: DurationStyle = 'Duration', options?: DurationFormatOptions) { |
| 265 | if (!this.isValidDate()) return ''; |
| 266 | const relative = new IntlDuration(this.locale); |
| 267 | relative.setTimestamp(this.date.getTime(), style); |
| 268 | return relative.getRelativeText(options); |
| 269 | } |
| 270 | |
| 271 | getRelativeNowFriendlyText(style: DurationStyle = 'Duration', options?: DurationFormatOptions) { |
| 272 | if (!this.isValidDate()) return ''; |
no test coverage detected